home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Beta / Quicktime 2.0 Beta.iso / Extensions / Macintosh Drag and Drop 1.0 / Drag Manager Programmer’s Guide < prev   
MacBinary  |  1993-09-29  |  552.9 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Drag Manager Programmer’s Guide

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Sep 22 09:00:00 1993, modified Wed Sep 29 13:40:56 1993, creator 'HLX2', type 'ONLN', 554774 bytes "Drag Manager Programmer�s Guide" , at 0x87796 11117 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
16% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1f 44 72 61 67 20 4d | 61 6e 61 67 65 72 20 50 |..Drag M|anager P|
|00000010| 72 6f 67 72 61 6d 6d 65 | 72 d5 73 20 47 75 69 64 |rogramme|r.s Guid|
|00000020| 65 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.......|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 08 77 16 00 | 00 2b 6d a8 c5 fc d0 a8 |.....w..|.+m.....|
|00000060| cf 79 28 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.y(.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d4 98 00 00 |........|........|
|00000080| 43 20 20 20 48 20 20 20 | 41 20 20 20 50 20 20 20 |C H |A P |
|00000090| 54 20 20 20 45 20 20 20 | 52 20 20 20 20 20 20 20 |T E |R |
|000000a0| 32 0d 44 72 61 67 20 4d | 61 6e 61 67 65 72 0d 50 |2.Drag M|anager.P|
|000000b0| 72 6f 67 72 61 6d 6d 65 | 72 d5 73 20 47 75 69 64 |rogramme|r.s Guid|
|000000c0| 65 0d 43 6f 6e 74 65 6e | 74 73 0d 41 62 6f 75 74 |e.Conten|ts.About|
|000000d0| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|000000e0| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 33 |r | 2-3|
|000000f0| 0d 09 54 68 65 20 44 72 | 61 67 20 50 72 6f 63 65 |..The Dr|ag Proce|
|00000100| 73 73 20 20 20 20 20 20 | 20 20 20 20 20 20 32 2d |ss | 2-|
|00000110| 33 0d 09 09 53 74 61 72 | 74 69 6e 67 20 61 20 44 |3...Star|ting a D|
|00000120| 72 61 67 20 20 20 20 20 | 20 20 20 20 20 20 20 32 |rag | 2|
|00000130| 2d 34 0d 09 09 54 72 61 | 63 6b 69 6e 67 20 61 20 |-4...Tra|cking a |
|00000140| 44 72 61 67 20 20 20 20 | 20 20 20 20 20 20 20 20 |Drag | |
|00000150| 32 2d 35 0d 09 09 46 69 | 6e 69 73 68 69 6e 67 20 |2-5...Fi|nishing |
|00000160| 61 20 44 72 61 67 20 20 | 20 20 20 20 20 20 20 20 |a Drag | |
|00000170| 20 20 32 2d 35 0d 09 44 | 72 61 67 20 49 74 65 6d | 2-5..D|rag Item|
|00000180| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 36 |s | 2-6|
|00000190| 0d 09 44 72 61 67 20 49 | 74 65 6d 20 46 6c 61 76 |..Drag I|tem Flav|
|000001a0| 6f 72 73 20 20 20 20 20 | 20 20 20 20 20 20 20 32 |ors | 2|
|000001b0| 2d 37 0d 09 44 72 61 67 | 20 48 61 6e 64 6c 65 72 |-7..Drag| Handler|
|000001c0| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 38 |s | 2-8|
|000001d0| 0d 09 09 44 72 61 67 20 | 54 72 61 63 6b 69 6e 67 |...Drag |Tracking|
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 39 0d | | 2-9.|
|000001f0| 09 09 52 65 63 65 69 76 | 69 6e 67 20 44 61 74 61 |..Receiv|ing Data|
|00000200| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 31 31 | | 2-11|
|00000210| 0d 09 44 72 61 67 20 50 | 72 6f 63 65 64 75 72 65 |..Drag P|rocedure|
|00000220| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 31 |s | 2-1|
|00000230| 32 0d 09 09 53 65 6e 64 | 69 6e 67 20 44 61 74 61 |2...Send|ing Data|
|00000240| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 31 32 | | 2-12|
|00000250| 0d 09 09 4f 76 65 72 72 | 69 64 69 6e 67 20 53 74 |...Overr|iding St|
|00000260| 61 6e 64 61 72 64 20 49 | 6e 70 75 74 20 20 20 20 |andard I|nput |
|00000270| 20 20 20 20 20 20 20 20 | 32 2d 31 33 0d 09 09 4f | |2-13...O|
|00000280| 76 65 72 72 69 64 69 6e | 67 20 53 74 61 6e 64 61 |verridin|g Standa|
|00000290| 72 64 20 44 72 61 77 69 | 6e 67 20 20 20 20 20 20 |rd Drawi|ng |
|000002a0| 20 20 20 20 20 20 32 2d | 31 33 0d 55 73 69 6e 67 | 2-|13.Using|
|000002b0| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|000002c0| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 31 |r | 2-1|
|000002d0| 34 0d 09 49 6e 73 74 61 | 6c 6c 69 6e 67 20 61 6e |4..Insta|lling an|
|000002e0| 64 20 52 65 6d 6f 76 69 | 6e 67 20 44 72 61 67 20 |d Removi|ng Drag |
|000002f0| 48 61 6e 64 6c 65 72 73 | 20 20 20 20 20 20 20 20 |Handlers| |
|00000300| 20 20 20 20 32 2d 31 34 | 0d 09 52 65 63 6f 67 6e | 2-14|..Recogn|
|00000310| 69 7a 69 6e 67 20 74 68 | 65 20 53 74 61 72 74 20 |izing th|e Start |
|00000320| 6f 66 20 61 20 44 72 61 | 67 20 20 20 20 20 20 20 |of a Dra|g |
|00000330| 20 20 20 20 20 32 2d 31 | 37 0d 09 50 65 72 66 6f | 2-1|7..Perfo|
|00000340| 72 6d 69 6e 67 20 61 20 | 44 72 61 67 20 20 20 20 |rming a |Drag |
|00000350| 20 20 20 20 20 20 20 20 | 32 2d 31 38 0d 09 41 64 | |2-18..Ad|
|00000360| 64 69 6e 67 20 44 72 61 | 67 20 49 74 65 6d 20 46 |ding Dra|g Item F|
|00000370| 6c 61 76 6f 72 73 20 20 | 20 20 20 20 20 20 20 20 |lavors | |
|00000380| 20 20 32 2d 31 39 0d 09 | 43 72 65 61 74 69 6e 67 | 2-19..|Creating|
|00000390| 20 74 68 65 20 44 72 61 | 67 20 52 65 67 69 6f 6e | the Dra|g Region|
|000003a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 32 32 | | 2-22|
|000003b0| 0d 09 54 72 61 63 6b 69 | 6e 67 20 61 20 44 72 61 |..Tracki|ng a Dra|
|000003c0| 67 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 32 |g | 2-2|
|000003d0| 34 0d 09 44 65 74 65 72 | 6d 69 6e 69 6e 67 20 57 |4..Deter|mining W|
|000003e0| 68 61 74 20 69 73 20 42 | 65 69 6e 67 20 44 72 61 |hat is B|eing Dra|
|000003f0| 67 67 65 64 20 20 20 20 | 20 20 20 20 20 20 20 20 |gged | |
|00000400| 32 2d 32 37 0d 09 52 65 | 63 65 69 76 69 6e 67 20 |2-27..Re|ceiving |
|00000410| 61 20 44 72 6f 70 20 20 | 20 20 20 20 20 20 20 20 |a Drop | |
|00000420| 20 20 32 2d 32 38 0d 09 | 50 72 6f 76 69 64 69 6e | 2-28..|Providin|
|00000430| 67 20 46 6c 61 76 6f 72 | 20 44 61 74 61 20 6f 6e |g Flavor| Data on|
|00000440| 20 44 65 6d 61 6e 64 20 | 20 20 20 20 20 20 20 20 | Demand | |
|00000450| 20 20 20 32 2d 33 30 0d | 44 72 61 67 20 4d 61 6e | 2-30.|Drag Man|
|00000460| 61 67 65 72 20 52 65 66 | 65 72 65 6e 63 65 20 20 |ager Ref|erence |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 32 2d 33 31 0d 09 | | 2-31..|
|00000480| 43 6f 6e 73 74 61 6e 74 | 73 20 20 20 20 20 20 20 |Constant|s |
|00000490| 20 20 20 20 20 32 2d 33 | 32 0d 09 09 47 65 73 74 | 2-3|2...Gest|
|000004a0| 61 6c 74 20 53 65 6c 65 | 63 74 6f 72 20 61 6e 64 |alt Sele|ctor and|
|000004b0| 20 52 65 73 70 6f 6e 73 | 65 20 42 69 74 73 20 20 | Respons|e Bits |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 32 2d 33 32 0d 09 | | 2-32..|
|000004d0| 09 46 6c 61 76 6f 72 20 | 46 6c 61 67 73 20 20 20 |.Flavor |Flags |
|000004e0| 20 20 20 20 20 20 20 20 | 20 32 2d 33 32 0d 09 09 | | 2-32...|
|000004f0| 44 72 61 67 20 41 74 74 | 72 69 62 75 74 65 73 20 |Drag Att|ributes |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 32 2d 33 34 0d | | 2-34.|
|00000510| 09 09 53 70 65 63 69 61 | 6c 20 46 6c 61 76 6f 72 |..Specia|l Flavor|
|00000520| 20 4b 69 6e 64 73 20 20 | 20 20 20 20 20 20 20 20 | Kinds | |
|00000530| 20 20 32 2d 33 34 0d 09 | 09 5a 6f 6f 6d 20 41 63 | 2-34..|.Zoom Ac|
|00000540| 63 65 6c 65 72 61 74 69 | 6f 6e 20 20 20 20 20 20 |celerati|on |
|00000550| 20 20 20 20 20 20 32 2d | 33 34 0d 09 44 61 74 61 | 2-|34..Data|
|00000560| 20 53 74 72 75 63 74 75 | 72 65 73 20 20 20 20 20 | Structu|res |
|00000570| 20 20 20 20 20 20 20 32 | 2d 33 35 0d 09 09 44 72 | 2|-35...Dr|
|00000580| 61 67 20 52 65 66 65 72 | 65 6e 63 65 20 20 20 20 |ag Refer|ence |
|00000590| 20 20 20 20 20 20 20 20 | 32 2d 33 35 0d 09 09 44 | |2-35...D|
|000005a0| 72 61 67 20 49 74 65 6d | 20 52 65 66 65 72 65 6e |rag Item| Referen|
|000005b0| 63 65 20 20 20 20 20 20 | 20 20 20 20 20 20 32 2d |ce | 2-|
|000005c0| 33 35 0d 09 09 46 6c 61 | 76 6f 72 20 54 79 70 65 |35...Fla|vor Type|
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 33 36 | | 2-36|
|000005e0| 0d 09 09 48 46 53 20 44 | 72 61 67 20 49 74 65 6d |...HFS D|rag Item|
|000005f0| 20 46 6c 61 76 6f 72 20 | 52 65 63 6f 72 64 20 20 | Flavor |Record |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 32 2d 33 36 0d 09 | | 2-36..|
|00000610| 44 72 61 67 20 4d 61 6e | 61 67 65 72 20 52 6f 75 |Drag Man|ager Rou|
|00000620| 74 69 6e 65 73 20 20 20 | 20 20 20 20 20 20 20 20 |tines | |
|00000630| 20 32 2d 33 37 0d 09 09 | 49 6e 73 74 61 6c 6c 69 | 2-37...|Installi|
|00000640| 6e 67 20 61 6e 64 20 52 | 65 6d 6f 76 69 6e 67 20 |ng and R|emoving |
|00000650| 44 72 61 67 20 48 61 6e | 64 6c 65 72 20 52 6f 75 |Drag Han|dler Rou|
|00000660| 74 69 6e 65 73 20 20 20 | 20 20 20 20 20 20 20 20 |tines | |
|00000670| 20 32 2d 33 37 0d 09 09 | 43 72 65 61 74 69 6e 67 | 2-37...|Creating|
|00000680| 20 61 6e 64 20 44 69 73 | 70 6f 73 69 6e 67 20 6f | and Dis|posing o|
|00000690| 66 20 44 72 61 67 20 52 | 65 66 65 72 65 6e 63 65 |f Drag R|eference|
|000006a0| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 34 |s | 2-4|
|000006b0| 31 0d 09 09 50 72 6f 76 | 69 64 69 6e 67 20 44 72 |1...Prov|iding Dr|
|000006c0| 61 67 20 43 61 6c 6c 62 | 61 63 6b 20 50 72 6f 63 |ag Callb|ack Proc|
|000006d0| 65 64 75 72 65 73 20 20 | 20 20 20 20 20 20 20 20 |edures | |
|000006e0| 20 20 32 2d 34 34 0d 09 | 09 41 64 64 69 6e 67 20 | 2-44..|.Adding |
|000006f0| 44 72 61 67 20 49 74 65 | 6d 20 46 6c 61 76 6f 72 |Drag Ite|m Flavor|
|00000700| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 34 |s | 2-4|
|00000710| 37 0d 09 09 50 65 72 66 | 6f 72 6d 69 6e 67 20 61 |7...Perf|orming a|
|00000720| 20 44 72 61 67 20 20 20 | 20 20 20 20 20 20 20 20 | Drag | |
|00000730| 20 32 2d 34 39 0d 09 09 | 47 65 74 74 69 6e 67 20 | 2-49...|Getting |
|00000740| 44 72 61 67 20 49 74 65 | 6d 20 49 6e 66 6f 72 6d |Drag Ite|m Inform|
|00000750| 61 74 69 6f 6e 20 20 20 | 20 20 20 20 20 20 20 20 |ation | |
|00000760| 20 32 2d 35 36 0d 09 09 | 47 65 74 74 69 6e 67 20 | 2-56...|Getting |
|00000770| 44 72 61 67 20 53 74 61 | 74 75 73 20 49 6e 66 6f |Drag Sta|tus Info|
|00000780| 72 6d 61 74 69 6f 6e 20 | 20 20 20 20 20 20 20 20 |rmation | |
|00000790| 20 20 20 32 2d 36 31 0d | 09 09 57 69 6e 64 6f 77 | 2-61.|..Window|
|000007a0| 20 48 69 67 68 6c 69 67 | 68 74 69 6e 67 20 55 74 | Highlig|hting Ut|
|000007b0| 69 6c 69 74 69 65 73 20 | 20 20 20 20 20 20 20 20 |ilities | |
|000007c0| 20 20 20 32 2d 36 35 0d | 09 09 44 72 61 67 20 4d | 2-65.|..Drag M|
|000007d0| 61 6e 61 67 65 72 20 55 | 74 69 6c 69 74 69 65 73 |anager U|tilities|
|000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 2d 36 38 | | 2-68|
|000007f0| 0d 09 41 70 70 6c 69 63 | 61 74 69 6f 6e 2d 44 65 |..Applic|ation-De|
|00000800| 66 69 6e 65 64 20 52 6f | 75 74 69 6e 65 73 20 20 |fined Ro|utines |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 32 2d 36 39 0d 09 | | 2-69..|
|00000820| 09 44 72 61 67 20 48 61 | 6e 64 6c 65 72 20 52 6f |.Drag Ha|ndler Ro|
|00000830| 75 74 69 6e 65 73 20 20 | 20 20 20 20 20 20 20 20 |utines | |
|00000840| 20 20 32 2d 36 39 0d 09 | 09 44 72 61 67 20 43 61 | 2-69..|.Drag Ca|
|00000850| 6c 6c 62 61 63 6b 20 50 | 72 6f 63 65 64 75 72 65 |llback P|rocedure|
|00000860| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 37 |s | 2-7|
|00000870| 32 0d 53 75 6d 6d 61 72 | 79 20 6f 66 20 74 68 65 |2.Summar|y of the|
|00000880| 20 44 72 61 67 20 4d 61 | 6e 61 67 65 72 20 20 20 | Drag Ma|nager |
|00000890| 20 20 20 20 20 20 20 20 | 20 32 2d 37 38 0d 09 50 | | 2-78..P|
|000008a0| 61 73 63 61 6c 20 53 75 | 6d 6d 61 72 79 20 20 20 |ascal Su|mmary |
|000008b0| 20 20 20 20 20 20 20 20 | 20 32 2d 37 38 0d 09 09 | | 2-78...|
|000008c0| 43 6f 6e 73 74 61 6e 74 | 73 20 20 20 20 20 20 20 |Constant|s |
|000008d0| 20 20 20 20 20 32 2d 37 | 39 0d 09 09 44 61 74 61 | 2-7|9...Data|
|000008e0| 20 54 79 70 65 73 20 20 | 20 20 20 20 20 20 20 20 | Types | |
|000008f0| 20 20 32 2d 37 39 0d 09 | 09 44 72 61 67 20 4d 61 | 2-79..|.Drag Ma|
|00000900| 6e 61 67 65 72 20 52 6f | 75 74 69 6e 65 73 20 20 |nager Ro|utines |
|00000910| 20 20 20 20 20 20 20 20 | 20 20 32 2d 37 39 0d 09 | | 2-79..|
|00000920| 09 41 70 70 6c 69 63 61 | 74 69 6f 6e 2d 44 65 66 |.Applica|tion-Def|
|00000930| 69 6e 65 64 20 52 6f 75 | 74 69 6e 65 73 20 20 20 |ined Rou|tines |
|00000940| 20 20 20 20 20 20 20 20 | 20 32 2d 38 32 0d 09 43 | | 2-82..C|
|00000950| 20 53 75 6d 6d 61 72 79 | 20 20 20 20 20 20 20 20 | Summary| |
|00000960| 20 20 20 20 32 2d 38 33 | 0d 09 09 43 6f 6e 73 74 | 2-83|...Const|
|00000970| 61 6e 74 73 20 20 20 20 | 20 20 20 20 20 20 20 20 |ants | |
|00000980| 32 2d 38 33 0d 09 09 44 | 61 74 61 20 54 79 70 65 |2-83...D|ata Type|
|00000990| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 38 |s | 2-8|
|000009a0| 34 0d 09 09 44 72 61 67 | 20 4d 61 6e 61 67 65 72 |4...Drag| Manager|
|000009b0| 20 52 6f 75 74 69 6e 65 | 73 20 20 20 20 20 20 20 | Routine|s |
|000009c0| 20 20 20 20 20 32 2d 38 | 35 0d 09 09 41 70 70 6c | 2-8|5...Appl|
|000009d0| 69 63 61 74 69 6f 6e 2d | 44 65 66 69 6e 65 64 20 |ication-|Defined |
|000009e0| 52 6f 75 74 69 6e 65 73 | 20 20 20 20 20 20 20 20 |Routines| |
|000009f0| 20 20 20 20 32 2d 38 36 | 0d 09 41 73 73 65 6d 62 | 2-86|..Assemb|
|00000a00| 6c 79 2d 4c 61 6e 67 75 | 61 67 65 20 53 75 6d 6d |ly-Langu|age Summ|
|00000a10| 61 72 79 20 20 20 20 20 | 20 20 20 20 20 20 20 32 |ary | 2|
|00000a20| 2d 38 39 0d 09 09 43 6f | 6e 73 74 61 6e 74 73 20 |-89...Co|nstants |
|00000a30| 20 20 20 20 20 20 20 20 | 20 20 20 32 2d 38 39 0d | | 2-89.|
|00000a40| 09 09 44 61 74 61 20 53 | 74 72 75 63 74 75 72 65 |..Data S|tructure|
|00000a50| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 32 2d 39 |s | 2-9|
|00000a60| 30 0d 09 09 54 72 61 70 | 20 4d 61 63 72 6f 73 20 |0...Trap| Macros |
|00000a70| 20 20 20 20 20 20 20 20 | 20 20 20 32 2d 39 30 0d | | 2-90.|
|00000a80| 09 52 65 73 75 6c 74 20 | 43 6f 64 65 73 20 20 20 |.Result |Codes |
|00000a90| 20 20 20 20 20 20 20 20 | 20 32 2d 39 32 0d 54 68 | | 2-92.Th|
|00000aa0| 69 73 20 63 68 61 70 74 | 65 72 20 64 65 73 63 72 |is chapt|er descr|
|00000ab0| 69 62 65 73 20 68 6f 77 | 20 79 6f 75 72 20 61 70 |ibes how| your ap|
|00000ac0| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 75 73 |plicatio|n can us|
|00000ad0| 65 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |e the Dr|ag Manag|
|00000ae0| 65 72 20 74 6f 20 64 72 | 61 67 20 69 74 65 6d 73 |er to dr|ag items|
|00000af0| 20 74 68 61 74 20 72 65 | 73 69 64 65 20 77 69 74 | that re|side wit|
|00000b00| 68 69 6e 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |hin your| applica|
|00000b10| 74 69 6f 6e 2e 20 20 42 | 79 20 75 73 69 6e 67 20 |tion. B|y using |
|00000b20| 74 68 65 20 44 72 61 67 | 20 4d 61 6e 61 67 65 72 |the Drag| Manager|
|00000b30| 2c 20 79 6f 75 20 63 61 | 6e 20 61 6c 6c 6f 77 20 |, you ca|n allow |
|00000b40| 69 74 65 6d 73 20 66 72 | 6f 6d 20 79 6f 75 72 20 |items fr|om your |
|00000b50| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 62 |applicat|ion to b|
|00000b60| 65 20 64 69 72 65 63 74 | 6c 79 20 64 72 61 67 67 |e direct|ly dragg|
|00000b70| 65 64 20 74 6f 20 6f 74 | 68 65 72 20 61 70 70 6c |ed to ot|her appl|
|00000b80| 69 63 61 74 69 6f 6e 73 | 20 61 6e 64 20 79 6f 75 |ications| and you|
|00000b90| 20 63 61 6e 20 72 65 63 | 65 69 76 65 20 69 74 65 | can rec|eive ite|
|00000ba0| 6d 73 20 66 72 6f 6d 20 | 6f 74 68 65 72 20 61 70 |ms from |other ap|
|00000bb0| 70 6c 69 63 61 74 69 6f | 6e 73 2e 0d 54 68 65 20 |plicatio|ns..The |
|00000bc0| 44 72 61 67 20 4d 61 6e | 61 67 65 72 20 69 73 20 |Drag Man|ager is |
|00000bd0| 6e 6f 74 20 61 76 61 69 | 6c 61 62 6c 65 20 69 6e |not avai|lable in|
|00000be0| 20 61 6c 6c 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 | all ver|sions of|
|00000bf0| 20 73 79 73 74 65 6d 20 | 73 6f 66 74 77 61 72 65 | system |software|
|00000c00| 2e 20 20 55 73 65 20 74 | 68 65 20 47 65 73 74 61 |. Use t|he Gesta|
|00000c10| 6c 74 20 66 75 6e 63 74 | 69 6f 6e 2c 20 64 65 73 |lt funct|ion, des|
|00000c20| 63 72 69 62 65 64 20 69 | 6e 20 74 68 65 20 63 68 |cribed i|n the ch|
|00000c30| 61 70 74 65 72 20 d2 47 | 65 73 74 61 6c 74 20 4d |apter .G|estalt M|
|00000c40| 61 6e 61 67 65 72 d3 20 | 6f 66 20 49 6e 73 69 64 |anager. |of Insid|
|00000c50| 65 20 4d 61 63 69 6e 74 | 6f 73 68 3a 20 4f 70 65 |e Macint|osh: Ope|
|00000c60| 72 61 74 69 6e 67 20 53 | 79 73 74 65 6d 20 55 74 |rating S|ystem Ut|
|00000c70| 69 6c 69 74 69 65 73 2c | 20 74 6f 20 64 65 74 65 |ilities,| to dete|
|00000c80| 72 6d 69 6e 65 20 77 68 | 65 74 68 65 72 20 74 68 |rmine wh|ether th|
|00000c90| 65 20 44 72 61 67 20 4d | 61 6e 61 67 65 72 20 69 |e Drag M|anager i|
|00000ca0| 73 20 70 72 65 73 65 6e | 74 2e 0d 52 65 61 64 20 |s presen|t..Read |
|00000cb0| 74 68 69 73 20 63 68 61 | 70 74 65 72 20 69 66 20 |this cha|pter if |
|00000cc0| 79 6f 75 20 77 61 6e 74 | 20 79 6f 75 72 20 61 70 |you want| your ap|
|00000cd0| 70 6c 69 63 61 74 69 6f | 6e 20 74 6f 20 62 65 20 |plicatio|n to be |
|00000ce0| 61 62 6c 65 20 74 6f 20 | 64 72 61 67 20 69 74 65 |able to |drag ite|
|00000cf0| 6d 73 20 65 69 74 68 65 | 72 20 77 69 74 68 69 6e |ms eithe|r within|
|00000d00| 20 79 6f 75 72 20 6f 77 | 6e 20 61 70 70 6c 69 63 | your ow|n applic|
|00000d10| 61 74 69 6f 6e d5 73 20 | 77 69 6e 64 6f 77 73 20 |ation.s |windows |
|00000d20| 6f 72 20 62 65 74 77 65 | 65 6e 20 79 6f 75 72 20 |or betwe|en your |
|00000d30| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 61 6e 64 20 |applicat|ion and |
|00000d40| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|00000d50| 6e 73 2e 20 20 59 6f 75 | 20 6d 69 67 68 74 20 77 |ns. You| might w|
|00000d60| 61 6e 74 20 74 6f 20 61 | 6c 6c 6f 77 20 74 68 65 |ant to a|llow the|
|00000d70| 20 75 73 65 72 20 6f 66 | 20 79 6f 75 72 20 61 70 | user of| your ap|
|00000d80| 70 6c 69 63 61 74 69 6f | 6e 20 74 6f 20 64 72 61 |plicatio|n to dra|
|00000d90| 67 20 73 65 6c 65 63 74 | 69 6f 6e 73 20 6f 66 20 |g select|ions of |
|00000da0| 79 6f 75 72 20 64 6f 63 | 75 6d 65 6e 74 73 20 74 |your doc|uments t|
|00000db0| 6f 20 74 68 65 20 46 69 | 6e 64 65 72 20 74 6f 20 |o the Fi|nder to |
|00000dc0| 63 72 65 61 74 65 20 d2 | 63 6c 69 70 70 69 6e 67 |create .|clipping|
|00000dd0| 73 d3 20 66 72 6f 6d 20 | 79 6f 75 72 20 64 6f 63 |s. from |your doc|
|00000de0| 75 6d 65 6e 74 73 2e 20 | 20 59 6f 75 20 6d 69 67 |uments. | You mig|
|00000df0| 68 74 20 61 6c 73 6f 20 | 77 61 6e 74 20 74 6f 20 |ht also |want to |
|00000e00| 61 6c 6c 6f 77 20 73 65 | 6c 65 63 74 69 6f 6e 73 |allow se|lections|
|00000e10| 20 66 72 6f 6d 20 6f 74 | 68 65 72 20 61 70 70 6c | from ot|her appl|
|00000e20| 69 63 61 74 69 6f 6e 73 | 20 74 6f 20 62 65 20 64 |ications| to be d|
|00000e30| 72 61 67 67 65 64 20 64 | 69 72 65 63 74 6c 79 20 |ragged d|irectly |
|00000e40| 69 6e 74 6f 20 79 6f 75 | 72 20 64 6f 63 75 6d 65 |into you|r docume|
|00000e50| 6e 74 73 2e 0d 41 62 6f | 75 74 20 74 68 65 20 44 |nts..Abo|ut the D|
|00000e60| 72 61 67 20 4d 61 6e 61 | 67 65 72 0d 4d 61 6e 79 |rag Mana|ger.Many|
|00000e70| 20 4d 61 63 69 6e 74 6f | 73 68 20 61 70 70 6c 69 | Macinto|sh appli|
|00000e80| 63 61 74 69 6f 6e 73 20 | 74 79 70 69 63 61 6c 6c |cations |typicall|
|00000e90| 79 20 61 6c 6c 6f 77 20 | 74 68 65 69 72 20 75 73 |y allow |their us|
|00000ea0| 65 72 73 20 74 6f 20 64 | 72 61 67 20 6f 62 6a 65 |ers to d|rag obje|
|00000eb0| 63 74 73 20 77 69 74 68 | 69 6e 20 74 68 65 69 72 |cts with|in their|
|00000ec0| 20 64 6f 63 75 6d 65 6e | 74 73 2e 20 20 54 68 65 | documen|ts. The|
|00000ed0| 20 46 69 6e 64 65 72 2c | 20 66 6f 72 20 65 78 61 | Finder,| for exa|
|00000ee0| 6d 70 6c 65 2c 20 61 6c | 6c 6f 77 73 20 75 73 65 |mple, al|lows use|
|00000ef0| 72 73 20 74 6f 20 6d 6f | 76 65 20 66 69 6c 65 73 |rs to mo|ve files|
|00000f00| 20 61 6e 64 20 66 6f 6c | 64 65 72 73 20 61 6e 79 | and fol|ders any|
|00000f10| 77 68 65 72 65 20 77 69 | 74 68 69 6e 20 74 68 65 |where wi|thin the|
|00000f20| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 20 75 73 69 | file sy|stem usi|
|00000f30| 6e 67 20 61 20 73 69 6d | 70 6c 65 20 64 72 61 67 |ng a sim|ple drag|
|00000f40| 2d 61 6e 64 2d 64 72 6f | 70 20 75 73 65 72 20 69 |-and-dro|p user i|
|00000f50| 6e 74 65 72 66 61 63 65 | 2e 0d 54 68 65 20 44 72 |nterface|..The Dr|
|00000f60| 61 67 20 4d 61 6e 61 67 | 65 72 20 69 73 20 74 68 |ag Manag|er is th|
|00000f70| 65 20 70 61 72 74 20 6f | 66 20 74 68 65 20 4d 61 |e part o|f the Ma|
|00000f80| 63 69 6e 74 6f 73 68 20 | 54 6f 6f 6c 62 6f 78 20 |cintosh |Toolbox |
|00000f90| 74 68 61 74 20 66 61 63 | 69 6c 69 74 61 74 65 73 |that fac|ilitates|
|00000fa0| 20 64 72 61 67 67 69 6e | 67 20 6f 62 6a 65 63 74 | draggin|g object|
|00000fb0| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 4d 61 63 |s within| the Mac|
|00000fc0| 69 6e 74 6f 73 68 20 75 | 73 65 72 20 69 6e 74 65 |intosh u|ser inte|
|00000fd0| 72 66 61 63 65 2e 20 20 | 54 68 65 20 44 72 61 67 |rface. |The Drag|
|00000fe0| 20 4d 61 6e 61 67 65 72 | 20 70 72 6f 76 69 64 65 | Manager| provide|
|00000ff0| 73 20 72 6f 75 74 69 6e | 65 73 20 74 68 61 74 20 |s routin|es that |
|00001000| 68 61 6e 64 6c 65 20 74 | 68 65 20 75 73 65 72 20 |handle t|he user |
|00001010| 69 6e 74 65 72 66 61 63 | 65 20 66 6f 72 20 64 72 |interfac|e for dr|
|00001020| 61 67 67 69 6e 67 20 61 | 6e 20 6f 62 6a 65 63 74 |agging a|n object|
|00001030| 20 66 72 6f 6d 2c 20 77 | 69 74 68 69 6e 2c 20 6f | from, w|ithin, o|
|00001040| 72 20 74 6f 20 6f 6e 65 | 20 6f 66 20 79 6f 75 72 |r to one| of your|
|00001050| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 77 | applica|tion.s w|
|00001060| 69 6e 64 6f 77 73 2e 20 | 20 54 68 65 20 44 72 61 |indows. | The Dra|
|00001070| 67 20 4d 61 6e 61 67 65 | 72 20 63 61 6e 20 62 65 |g Manage|r can be|
|00001080| 20 75 73 65 64 20 77 68 | 65 6e 65 76 65 72 20 61 | used wh|enever a|
|00001090| 6e 20 6f 62 6a 65 63 74 | 20 69 73 20 64 72 61 67 |n object| is drag|
|000010a0| 67 65 64 20 77 69 74 68 | 69 6e 20 79 6f 75 72 20 |ged with|in your |
|000010b0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 0d 54 68 69 |applicat|ion..Thi|
|000010c0| 73 20 63 68 61 70 74 65 | 72 20 64 65 73 63 72 69 |s chapte|r descri|
|000010d0| 62 65 73 20 68 6f 77 20 | 79 6f 75 72 20 61 70 70 |bes how |your app|
|000010e0| 6c 69 63 61 74 69 6f 6e | 20 63 61 6e 20 75 73 65 |lication| can use|
|000010f0| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|00001100| 72 20 74 6f 20 66 61 63 | 69 6c 69 74 61 74 65 20 |r to fac|ilitate |
|00001110| 64 72 61 67 20 61 6e 64 | 20 64 72 6f 70 20 6f 66 |drag and| drop of|
|00001120| 20 6f 62 6a 65 63 74 73 | 20 77 69 74 68 69 6e 20 | objects| within |
|00001130| 79 6f 75 72 20 64 6f 63 | 75 6d 65 6e 74 73 2e 20 |your doc|uments. |
|00001140| 20 54 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | The Dra|g Manage|
|00001150| 72 20 61 6c 73 6f 20 70 | 72 6f 76 69 64 65 73 20 |r also p|rovides |
|00001160| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00001170| 20 77 69 74 68 20 74 68 | 65 20 61 62 69 6c 69 74 | with th|e abilit|
|00001180| 79 20 74 6f 20 72 65 63 | 65 69 76 65 20 64 72 61 |y to rec|eive dra|
|00001190| 67 67 65 64 20 69 74 65 | 6d 73 20 66 72 6f 6d 20 |gged ite|ms from |
|000011a0| 6f 74 68 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |other ap|plicatio|
|000011b0| 6e 73 20 61 73 20 77 65 | 6c 6c 20 61 73 20 61 6c |ns as we|ll as al|
|000011c0| 6c 6f 77 69 6e 67 20 6f | 74 68 65 72 20 61 70 70 |lowing o|ther app|
|000011d0| 6c 69 63 61 74 69 6f 6e | 73 20 74 6f 20 72 65 63 |lication|s to rec|
|000011e0| 65 69 76 65 20 69 74 65 | 6d 73 20 64 72 61 67 67 |eive ite|ms dragg|
|000011f0| 65 64 20 66 72 6f 6d 20 | 79 6f 75 72 20 61 70 70 |ed from |your app|
|00001200| 6c 69 63 61 74 69 6f 6e | 2e 0d 54 68 69 73 20 64 |lication|..This d|
|00001210| 6f 63 75 6d 65 6e 74 20 | 64 6f 65 73 20 6e 6f 74 |ocument |does not|
|00001220| 20 64 69 73 63 75 73 73 | 20 74 68 65 20 61 63 74 | discuss| the act|
|00001230| 75 61 6c 20 68 75 6d 61 | 6e 20 69 6e 74 65 72 66 |ual huma|n interf|
|00001240| 61 63 65 20 67 75 69 64 | 65 6c 69 6e 65 73 20 66 |ace guid|elines f|
|00001250| 6f 72 20 64 72 61 67 20 | 61 6e 64 20 64 72 6f 70 |or drag |and drop|
|00001260| 2e 20 20 50 6c 65 61 73 | 65 20 73 65 65 20 74 68 |. Pleas|e see th|
|00001270| 65 20 73 65 70 61 72 61 | 74 65 20 64 6f 63 75 6d |e separa|te docum|
|00001280| 65 6e 74 20 d2 44 72 61 | 67 20 61 6e 64 20 44 72 |ent .Dra|g and Dr|
|00001290| 6f 70 20 48 75 6d 61 6e | 20 49 6e 74 65 72 66 61 |op Human| Interfa|
|000012a0| 63 65 20 47 75 69 64 65 | 6c 69 6e 65 73 2e d3 0d |ce Guide|lines...|
|000012b0| 49 4d 50 4f 52 54 41 4e | 54 0d 54 68 65 20 44 72 |IMPORTAN|T.The Dr|
|000012c0| 61 67 20 4d 61 6e 61 67 | 65 72 20 69 73 20 6e 6f |ag Manag|er is no|
|000012d0| 74 20 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 61 |t availa|ble in a|
|000012e0| 6c 6c 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 73 |ll versi|ons of s|
|000012f0| 79 73 74 65 6d 20 73 6f | 66 74 77 61 72 65 2e 20 |ystem so|ftware. |
|00001300| 20 55 73 65 20 74 68 65 | 20 47 65 73 74 61 6c 74 | Use the| Gestalt|
|00001310| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 64 65 74 | functio|n to det|
|00001320| 65 72 6d 69 6e 65 20 69 | 66 20 74 68 65 20 44 72 |ermine i|f the Dr|
|00001330| 61 67 20 4d 61 6e 61 67 | 65 72 20 69 73 20 61 76 |ag Manag|er is av|
|00001340| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 75 73 65 2e |ailable |for use.|
|00001350| 20 20 73 0d 54 68 65 20 | 44 72 61 67 20 50 72 6f | s.The |Drag Pro|
|00001360| 63 65 73 73 0d 54 68 65 | 20 44 72 61 67 20 4d 61 |cess.The| Drag Ma|
|00001370| 6e 61 67 65 72 20 64 69 | 76 69 64 65 73 20 74 68 |nager di|vides th|
|00001380| 65 20 64 72 61 67 20 61 | 6e 64 20 64 72 6f 70 20 |e drag a|nd drop |
|00001390| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 69 |user int|erface i|
|000013a0| 6e 74 6f 20 74 68 72 65 | 65 20 64 69 73 63 72 65 |nto thre|e discre|
|000013b0| 74 65 20 73 74 65 70 73 | 2e 20 20 54 68 65 20 73 |te steps|. The s|
|000013c0| 74 65 70 73 20 61 72 65 | 20 73 74 61 72 74 69 6e |teps are| startin|
|000013d0| 67 20 61 20 64 72 61 67 | 2c 20 74 72 61 63 6b 69 |g a drag|, tracki|
|000013e0| 6e 67 20 61 20 64 72 61 | 67 2c 20 61 6e 64 20 66 |ng a dra|g, and f|
|000013f0| 69 6e 69 73 68 69 6e 67 | 20 61 20 64 72 61 67 2e |inishing| a drag.|
|00001400| 20 20 54 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 | The Dr|ag Manag|
|00001410| 65 72 20 64 69 76 69 64 | 65 73 20 74 68 65 20 61 |er divid|es the a|
|00001420| 63 74 69 6f 6e 20 6f 66 | 20 64 72 61 67 67 69 6e |ction of| draggin|
|00001430| 67 20 69 6e 74 6f 20 74 | 68 65 73 65 20 74 68 72 |g into t|hese thr|
|00001440| 65 65 20 73 74 65 70 73 | 20 74 6f 20 61 6c 6c 6f |ee steps| to allo|
|00001450| 77 20 66 6f 72 20 74 68 | 65 20 70 6f 73 73 69 62 |w for th|e possib|
|00001460| 69 6c 69 74 79 20 74 68 | 61 74 20 64 69 66 66 65 |ility th|at diffe|
|00001470| 72 65 6e 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |rent app|lication|
|00001480| 73 20 77 69 6c 6c 20 62 | 65 20 69 6e 76 6f 6c 76 |s will b|e involv|
|00001490| 65 64 20 69 6e 20 65 61 | 63 68 20 6f 66 20 74 68 |ed in ea|ch of th|
|000014a0| 65 20 73 74 65 70 73 2e | 0d 49 6e 20 74 68 65 20 |e steps.|.In the |
|000014b0| 73 69 6d 70 6c 65 73 74 | 20 63 61 73 65 2c 20 74 |simplest| case, t|
|000014c0| 68 65 20 75 73 65 72 20 | 6d 61 79 20 64 72 61 67 |he user |may drag|
|000014d0| 20 61 6e 20 69 74 65 6d | 20 77 68 6f 6c 6c 79 20 | an item| wholly |
|000014e0| 77 69 74 68 69 6e 20 6f | 6e 65 20 6f 66 20 79 6f |within o|ne of yo|
|000014f0| 75 72 20 64 6f 63 75 6d | 65 6e 74 20 77 69 6e 64 |ur docum|ent wind|
|00001500| 6f 77 73 2e 20 20 49 6e | 20 74 68 69 73 20 63 61 |ows. In| this ca|
|00001510| 73 65 2c 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |se, your| applica|
|00001520| 74 69 6f 6e 20 73 74 61 | 72 74 73 20 74 68 65 20 |tion sta|rts the |
|00001530| 64 72 61 67 2c 20 74 72 | 61 63 6b 73 20 74 68 65 |drag, tr|acks the|
|00001540| 20 6d 6f 76 65 6d 65 6e | 74 20 6f 66 20 74 68 65 | movemen|t of the|
|00001550| 20 69 74 65 6d 20 74 68 | 72 6f 75 67 68 20 74 68 | item th|rough th|
|00001560| 65 20 64 6f 63 75 6d 65 | 6e 74 20 77 69 6e 64 6f |e docume|nt windo|
|00001570| 77 2c 20 61 6e 64 20 74 | 68 65 6e 20 61 63 63 65 |w, and t|hen acce|
|00001580| 70 74 73 20 74 68 65 20 | 69 74 65 6d 20 77 68 65 |pts the |item whe|
|00001590| 6e 20 74 68 65 20 75 73 | 65 72 20 72 65 6c 65 61 |n the us|er relea|
|000015a0| 73 65 73 20 74 68 65 20 | 69 74 65 6d 20 69 6e 20 |ses the |item in |
|000015b0| 74 68 65 20 77 69 6e 64 | 6f 77 2e 0d 49 6e 20 61 |the wind|ow..In a|
|000015c0| 20 6d 6f 72 65 20 61 6d | 62 69 74 69 6f 75 73 20 | more am|bitious |
|000015d0| 73 63 65 6e 61 72 69 6f | 20 77 68 65 72 65 20 74 |scenario| where t|
|000015e0| 68 65 20 75 73 65 72 20 | 64 72 61 67 73 20 61 6e |he user |drags an|
|000015f0| 20 69 74 65 6d 20 66 72 | 6f 6d 20 6f 6e 65 20 61 | item fr|om one a|
|00001600| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 6f 20 61 6e |pplicati|on to an|
|00001610| 6f 74 68 65 72 2c 20 74 | 68 65 20 73 6f 75 72 63 |other, t|he sourc|
|00001620| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 73 74 |e applic|ation st|
|00001630| 61 72 74 73 20 74 68 65 | 20 64 72 61 67 3b 20 70 |arts the| drag; p|
|00001640| 6f 74 65 6e 74 69 61 6c | 6c 79 20 73 65 76 65 72 |otential|ly sever|
|00001650| 61 6c 20 6f 74 68 65 72 | 20 61 70 70 6c 69 63 61 |al other| applica|
|00001660| 74 69 6f 6e 73 20 62 65 | 63 6f 6d 65 20 69 6e 76 |tions be|come inv|
|00001670| 6f 6c 76 65 64 20 61 73 | 20 74 68 65 20 75 73 65 |olved as| the use|
|00001680| 72 20 6d 6f 76 65 73 20 | 74 68 65 20 6d 6f 75 73 |r moves |the mous|
|00001690| 65 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |e on the| screen |
|000016a0| 77 68 69 6c 65 20 73 65 | 61 72 63 68 69 6e 67 20 |while se|arching |
|000016b0| 66 6f 72 20 61 20 70 6c | 61 63 65 20 74 6f 20 64 |for a pl|ace to d|
|000016c0| 72 6f 70 20 74 68 65 20 | 69 74 65 6d 3b 20 61 6e |rop the |item; an|
|000016d0| 64 20 66 69 6e 61 6c 6c | 79 20 61 20 64 69 66 66 |d finall|y a diff|
|000016e0| 65 72 65 6e 74 20 61 70 | 70 6c 69 63 61 74 69 6f |erent ap|plicatio|
|000016f0| 6e 20 6d 61 79 20 62 65 | 20 69 6e 76 6f 6c 76 65 |n may be| involve|
|00001700| 64 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |d when t|he user |
|00001710| 64 72 6f 70 73 20 74 68 | 65 20 69 74 65 6d 20 61 |drops th|e item a|
|00001720| 74 20 69 74 73 20 66 69 | 6e 61 6c 20 64 65 73 74 |t its fi|nal dest|
|00001730| 69 6e 61 74 69 6f 6e 2e | 0d 54 68 65 20 72 65 6d |ination.|.The rem|
|00001740| 61 69 6e 64 65 72 20 6f | 66 20 74 68 69 73 20 73 |ainder o|f this s|
|00001750| 65 63 74 69 6f 6e 20 64 | 65 73 63 72 69 62 65 73 |ection d|escribes|
|00001760| 20 65 61 63 68 20 6f 66 | 20 74 68 65 20 74 68 65 | each of| the the|
|00001770| 73 65 20 74 68 72 65 65 | 20 73 74 65 70 73 20 69 |se three| steps i|
|00001780| 6e 20 67 72 65 61 74 65 | 72 20 64 65 74 61 69 6c |n greate|r detail|
|00001790| 2e 0d 53 74 61 72 74 69 | 6e 67 20 61 20 44 72 61 |..Starti|ng a Dra|
|000017a0| 67 0d 54 68 65 20 66 69 | 72 73 74 20 73 74 65 70 |g.The fi|rst step|
|000017b0| 20 69 6e 20 61 20 64 72 | 61 67 2d 61 6e 64 2d 64 | in a dr|ag-and-d|
|000017c0| 72 6f 70 20 61 63 74 69 | 6f 6e 20 6f 63 63 75 72 |rop acti|on occur|
|000017d0| 73 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |s when t|he user |
|000017e0| 63 6c 69 63 6b 73 20 6f | 6e 20 61 20 73 65 6c 65 |clicks o|n a sele|
|000017f0| 63 74 65 64 20 6f 62 6a | 65 63 74 20 61 6e 64 20 |cted obj|ect and |
|00001800| 62 65 67 69 6e 73 20 74 | 6f 20 6d 6f 76 65 20 74 |begins t|o move t|
|00001810| 68 65 20 6d 6f 75 73 65 | 20 77 69 74 68 6f 75 74 |he mouse| without|
|00001820| 20 66 69 72 73 74 20 72 | 65 6c 65 61 73 69 6e 67 | first r|eleasing|
|00001830| 20 74 68 65 20 6d 6f 75 | 73 65 20 62 75 74 74 6f | the mou|se butto|
|00001840| 6e 2e 20 20 54 68 65 20 | 44 72 61 67 20 4d 61 6e |n. The |Drag Man|
|00001850| 61 67 65 72 20 69 6e 63 | 6c 75 64 65 73 20 61 20 |ager inc|ludes a |
|00001860| 57 61 69 74 4d 6f 75 73 | 65 4d 6f 76 65 64 20 66 |WaitMous|eMoved f|
|00001870| 75 6e 63 74 69 6f 6e 20 | 74 68 61 74 20 61 6c 6c |unction |that all|
|00001880| 6f 77 73 20 79 6f 75 20 | 74 6f 20 65 61 73 69 6c |ows you |to easil|
|00001890| 79 20 64 65 74 65 72 6d | 69 6e 65 20 69 66 20 74 |y determ|ine if t|
|000018a0| 68 65 20 6d 6f 75 73 65 | 20 68 61 73 20 6d 6f 76 |he mouse| has mov|
|000018b0| 65 64 20 66 61 72 20 65 | 6e 6f 75 67 68 20 74 6f |ed far e|nough to|
|000018c0| 20 73 74 61 72 74 20 61 | 20 64 72 61 67 2e 0d 46 | start a| drag..F|
|000018d0| 69 67 75 72 65 20 32 2d | 31 09 53 74 61 72 74 69 |igure 2-|1.Starti|
|000018e0| 6e 67 20 61 20 44 72 61 | 67 0d 59 6f 75 72 20 61 |ng a Dra|g.Your a|
|000018f0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6d 75 73 74 20 |pplicati|on must |
|00001900| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 64 72 61 |create a| new dra|
|00001910| 67 20 72 65 66 65 72 65 | 6e 63 65 20 77 68 69 63 |g refere|nce whic|
|00001920| 68 20 69 73 20 75 73 65 | 64 20 62 79 20 79 6f 75 |h is use|d by you|
|00001930| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |r applic|ation to|
|00001940| 20 72 65 66 65 72 20 74 | 6f 20 61 20 73 70 65 63 | refer t|o a spec|
|00001950| 69 66 69 63 20 64 72 61 | 67 20 70 72 6f 63 65 73 |ific dra|g proces|
|00001960| 73 20 69 6e 20 73 75 62 | 73 65 71 75 65 6e 74 20 |s in sub|sequent |
|00001970| 63 61 6c 6c 73 20 74 6f | 20 74 68 65 20 44 72 61 |calls to| the Dra|
|00001980| 67 20 4d 61 6e 61 67 65 | 72 2e 20 20 55 73 65 20 |g Manage|r. Use |
|00001990| 74 68 65 20 4e 65 77 44 | 72 61 67 20 66 75 6e 63 |the NewD|rag func|
|000019a0| 74 69 6f 6e 20 74 6f 20 | 63 72 65 61 74 65 20 61 |tion to |create a|
|000019b0| 20 6e 65 77 20 64 72 61 | 67 20 72 65 66 65 72 65 | new dra|g refere|
|000019c0| 6e 63 65 2e 20 20 41 66 | 74 65 72 20 63 72 65 61 |nce. Af|ter crea|
|000019d0| 74 69 6e 67 20 61 20 6e | 65 77 20 64 72 61 67 20 |ting a n|ew drag |
|000019e0| 72 65 66 65 72 65 6e 63 | 65 2c 20 79 6f 75 72 20 |referenc|e, your |
|000019f0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 70 72 6f 76 |applicat|ion prov|
|00001a00| 69 64 65 73 20 74 68 65 | 20 44 72 61 67 20 4d 61 |ides the| Drag Ma|
|00001a10| 6e 61 67 65 72 20 77 69 | 74 68 20 61 20 64 65 73 |nager wi|th a des|
|00001a20| 63 72 69 70 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |cription| of the |
|00001a30| 73 65 6c 65 63 74 65 64 | 20 69 74 65 6d 20 6f 72 |selected| item or|
|00001a40| 20 69 74 65 6d 73 20 62 | 65 69 6e 67 20 64 72 61 | items b|eing dra|
|00001a50| 67 67 65 64 2e 20 20 59 | 6f 75 20 64 65 73 63 72 |gged. Y|ou descr|
|00001a60| 69 62 65 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |ibe the |selectio|
|00001a70| 6e 20 62 65 69 6e 67 20 | 64 72 61 67 67 65 64 20 |n being |dragged |
|00001a80| 62 79 20 63 72 65 61 74 | 69 6e 67 20 61 20 6c 69 |by creat|ing a li|
|00001a90| 73 74 20 6f 66 20 64 72 | 61 67 20 69 74 65 6d 20 |st of dr|ag item |
|00001aa0| 66 6c 61 76 6f 72 73 20 | 74 68 61 74 20 72 65 70 |flavors |that rep|
|00001ab0| 72 65 73 65 6e 74 20 74 | 68 65 20 64 69 66 66 65 |resent t|he diffe|
|00001ac0| 72 65 6e 74 20 64 61 74 | 61 20 66 6f 72 6d 61 74 |rent dat|a format|
|00001ad0| 73 20 74 68 61 74 20 65 | 61 63 68 20 64 72 61 67 |s that e|ach drag|
|00001ae0| 20 69 74 65 6d 20 6d 61 | 79 20 62 65 20 70 72 6f | item ma|y be pro|
|00001af0| 64 75 63 65 64 20 69 6e | 2e 20 20 54 68 65 20 44 |duced in|. The D|
|00001b00| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 69 6e 63 6c |rag Mana|ger incl|
|00001b10| 75 64 65 73 20 74 68 65 | 20 41 64 64 44 72 61 67 |udes the| AddDrag|
|00001b20| 49 74 65 6d 46 6c 61 76 | 6f 72 20 66 75 6e 63 74 |ItemFlav|or funct|
|00001b30| 69 6f 6e 20 66 6f 72 20 | 61 64 64 69 6e 67 20 64 |ion for |adding d|
|00001b40| 72 61 67 20 69 74 65 6d | 20 66 6c 61 76 6f 72 73 |rag item| flavors|
|00001b50| 20 74 6f 20 61 20 64 72 | 61 67 20 72 65 66 65 72 | to a dr|ag refer|
|00001b60| 65 6e 63 65 2e 0d 41 66 | 74 65 72 20 70 72 65 70 |ence..Af|ter prep|
|00001b70| 61 72 69 6e 67 20 74 68 | 65 20 44 72 61 67 20 4d |aring th|e Drag M|
|00001b80| 61 6e 61 67 65 72 20 74 | 6f 20 64 72 61 67 20 79 |anager t|o drag y|
|00001b90| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |our appl|ication.|
|00001ba0| 73 20 73 65 6c 65 63 74 | 69 6f 6e 2c 20 79 6f 75 |s select|ion, you|
|00001bb0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 62 65 |r applic|ation be|
|00001bc0| 67 69 6e 73 20 74 68 65 | 20 64 72 61 67 20 62 79 |gins the| drag by|
|00001bd0| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|00001be0| 72 d5 73 20 54 72 61 63 | 6b 44 72 61 67 20 66 75 |r.s Trac|kDrag fu|
|00001bf0| 6e 63 74 69 6f 6e 2e 0d | 54 72 61 63 6b 69 6e 67 |nction..|Tracking|
|00001c00| 20 61 20 44 72 61 67 0d | 57 68 69 6c 65 20 74 68 | a Drag.|While th|
|00001c10| 65 20 75 73 65 72 20 64 | 72 61 67 73 20 61 20 73 |e user d|rags a s|
|00001c20| 65 6c 65 63 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |election| on the |
|00001c30| 73 63 72 65 65 6e 2c 20 | 74 68 65 20 64 72 61 67 |screen, |the drag|
|00001c40| 20 69 73 20 d2 74 72 61 | 63 6b 65 64 d3 20 74 68 | is .tra|cked. th|
|00001c50| 72 6f 75 67 68 20 65 61 | 63 68 20 77 69 6e 64 6f |rough ea|ch windo|
|00001c60| 77 20 74 68 65 20 74 68 | 65 20 63 75 72 73 6f 72 |w the th|e cursor|
|00001c70| 20 6d 6f 76 65 73 20 6f | 76 65 72 2e 20 20 44 65 | moves o|ver. De|
|00001c80| 73 74 69 6e 61 74 69 6f | 6e 20 68 69 67 68 6c 69 |stinatio|n highli|
|00001c90| 67 68 74 69 6e 67 20 6f | 63 63 75 72 73 20 77 68 |ghting o|ccurs wh|
|00001ca0| 69 6c 65 20 74 72 61 63 | 6b 69 6e 67 20 61 20 64 |ile trac|king a d|
|00001cb0| 72 61 67 20 61 66 74 65 | 72 20 74 68 65 20 63 75 |rag afte|r the cu|
|00001cc0| 72 73 6f 72 20 68 61 73 | 20 6c 65 66 74 20 74 68 |rsor has| left th|
|00001cd0| 65 20 73 6f 75 72 63 65 | 20 6c 6f 63 61 74 69 6f |e source| locatio|
|00001ce0| 6e 2e 20 20 41 6c 73 6f | 2c 20 64 65 73 74 69 6e |n. Also|, destin|
|00001cf0| 61 74 69 6f 6e 20 66 65 | 65 64 62 61 63 6b 20 6d |ation fe|edback m|
|00001d00| 61 79 20 6f 63 63 75 72 | 20 69 66 20 61 20 63 6f |ay occur| if a co|
|00001d10| 6e 74 61 69 6e 65 72 20 | 75 6e 64 65 72 20 74 68 |ntainer |under th|
|00001d20| 65 20 63 75 72 73 6f 72 | 20 63 61 6e 20 61 63 63 |e cursor| can acc|
|00001d30| 65 70 74 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |ept the |selectio|
|00001d40| 6e 20 28 73 75 63 68 20 | 61 73 20 66 6f 6c 64 65 |n (such |as folde|
|00001d50| 72 73 20 69 6e 20 74 68 | 65 20 46 69 6e 64 65 72 |rs in th|e Finder|
|00001d60| 29 2e 0d 46 69 67 75 72 | 65 20 32 2d 32 09 54 72 |)..Figur|e 2-2.Tr|
|00001d70| 61 63 6b 69 6e 67 20 61 | 20 44 72 61 67 0d 57 68 |acking a| Drag.Wh|
|00001d80| 69 6c 65 20 74 68 65 20 | 64 72 61 67 20 69 73 20 |ile the |drag is |
|00001d90| 62 65 69 6e 67 20 74 72 | 61 63 6b 65 64 20 6f 6e |being tr|acked on|
|00001da0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 62 79 20 74 | the scr|een by t|
|00001db0| 68 65 20 44 72 61 67 20 | 4d 61 6e 61 67 65 72 2c |he Drag |Manager,|
|00001dc0| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|00001dd0| 72 20 63 61 6c 6c 73 20 | 72 6f 75 74 69 6e 65 73 |r calls |routines|
|00001de0| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 79 6f 75 | provide|d by you|
|00001df0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |r applic|ation to|
|00001e00| 20 74 72 61 63 6b 20 74 | 68 65 20 64 72 61 67 20 | track t|he drag |
|00001e10| 74 68 72 6f 75 67 68 20 | 79 6f 75 72 20 77 69 6e |through |your win|
|00001e20| 64 6f 77 73 2e 20 20 54 | 68 65 73 65 20 72 6f 75 |dows. T|hese rou|
|00001e30| 74 69 6e 65 73 20 61 72 | 65 20 63 61 6c 6c 65 64 |tines ar|e called|
|00001e40| 20 64 72 61 67 20 74 72 | 61 63 6b 69 6e 67 20 68 | drag tr|acking h|
|00001e50| 61 6e 64 6c 65 72 73 2e | 0d 59 6f 75 72 20 64 72 |andlers.|.Your dr|
|00001e60| 61 67 20 74 72 61 63 6b | 69 6e 67 20 68 61 6e 64 |ag track|ing hand|
|00001e70| 6c 65 72 73 20 63 61 6e | 20 69 6e 73 70 65 63 74 |lers can| inspect|
|00001e80| 20 74 68 65 20 64 65 73 | 63 72 69 70 74 69 6f 6e | the des|cription|
|00001e90| 20 6f 66 20 74 68 65 20 | 69 74 65 6d 73 20 74 68 | of the |items th|
|00001ea0| 61 74 20 61 72 65 20 62 | 65 69 6e 67 20 64 72 61 |at are b|eing dra|
|00001eb0| 67 67 65 64 20 61 6e 64 | 20 68 69 67 68 6c 69 67 |gged and| highlig|
|00001ec0| 68 74 20 70 61 72 74 73 | 20 6f 66 20 74 68 65 20 |ht parts| of the |
|00001ed0| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 77 69 |applicat|ion.s wi|
|00001ee0| 6e 64 6f 77 73 20 61 63 | 63 6f 72 64 69 6e 67 6c |ndows ac|cordingl|
|00001ef0| 79 2e 20 20 52 6f 75 74 | 69 6e 65 73 20 61 72 65 |y. Rout|ines are|
|00001f00| 20 70 72 6f 76 69 64 65 | 64 20 74 68 61 74 20 61 | provide|d that a|
|00001f10| 6c 6c 6f 77 20 79 6f 75 | 20 74 6f 20 69 6e 73 70 |llow you| to insp|
|00001f20| 65 63 74 20 74 68 65 20 | 64 61 74 61 20 77 69 74 |ect the |data wit|
|00001f30| 68 69 6e 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |hin the |selectio|
|00001f40| 6e 20 62 65 69 6e 67 20 | 64 72 61 67 67 65 64 2c |n being |dragged,|
|00001f50| 20 61 6e 64 20 72 6f 75 | 74 69 6e 65 73 20 61 72 | and rou|tines ar|
|00001f60| 65 20 70 72 6f 76 69 64 | 65 64 20 74 6f 20 63 72 |e provid|ed to cr|
|00001f70| 65 61 74 65 20 61 6e 64 | 20 72 65 6d 6f 76 65 20 |eate and| remove |
|00001f80| 64 72 61 67 20 68 69 67 | 68 6c 69 67 68 74 69 6e |drag hig|hlightin|
|00001f90| 67 2e 0d 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |g..You c|an also |
|00001fa0| 70 72 6f 76 69 64 65 20 | 74 68 65 20 44 72 61 67 |provide |the Drag|
|00001fb0| 20 4d 61 6e 61 67 65 72 | 20 77 69 74 68 20 72 6f | Manager| with ro|
|00001fc0| 75 74 69 6e 65 73 20 74 | 68 61 74 20 6f 76 65 72 |utines t|hat over|
|00001fd0| 72 69 64 65 20 74 68 65 | 20 44 72 61 67 20 4d 61 |ride the| Drag Ma|
|00001fe0| 6e 61 67 65 72 d5 73 20 | 73 74 61 6e 64 61 72 64 |nager.s |standard|
|00001ff0| 20 62 65 68 61 76 69 6f | 72 73 2c 20 73 75 63 68 | behavio|rs, such|
|00002000| 20 61 73 20 74 6f 20 70 | 72 6f 76 69 64 65 20 61 | as to p|rovide a|
|00002010| 20 64 69 66 66 65 72 65 | 6e 74 20 61 70 70 65 61 | differe|nt appea|
|00002020| 72 61 6e 63 65 20 66 6f | 72 20 74 68 65 20 64 6f |rance fo|r the do|
|00002030| 74 74 65 64 20 6f 75 74 | 6c 69 6e 65 20 6f 72 20 |tted out|line or |
|00002040| 74 6f 20 6d 6f 64 69 66 | 79 20 74 68 65 20 6b 65 |to modif|y the ke|
|00002050| 79 62 6f 61 72 64 20 6f | 72 20 6d 6f 75 73 65 20 |yboard o|r mouse |
|00002060| 69 6e 70 75 74 73 2e 0d | 46 69 6e 69 73 68 69 6e |inputs..|Finishin|
|00002070| 67 20 61 20 44 72 61 67 | 0d 57 68 65 6e 20 74 68 |g a Drag|.When th|
|00002080| 65 20 75 73 65 72 20 72 | 65 6c 65 61 73 65 73 20 |e user r|eleases |
|00002090| 74 68 65 20 6d 6f 75 73 | 65 20 62 75 74 74 6f 6e |the mous|e button|
|000020a0| 2c 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |, the Dr|ag Manag|
|000020b0| 65 72 20 63 61 6c 6c 73 | 20 61 6e 6f 74 68 65 72 |er calls| another|
|000020c0| 20 72 6f 75 74 69 6e 65 | 20 70 72 6f 76 69 64 65 | routine| provide|
|000020d0| 64 20 62 79 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |d by you|r applic|
|000020e0| 61 74 69 6f 6e 20 63 61 | 6c 6c 65 64 20 61 20 64 |ation ca|lled a d|
|000020f0| 72 61 67 20 72 65 63 65 | 69 76 65 20 68 61 6e 64 |rag rece|ive hand|
|00002100| 6c 65 72 2e 20 20 59 6f | 75 72 20 61 70 70 6c 69 |ler. Yo|ur appli|
|00002110| 63 61 74 69 6f 6e d5 73 | 20 64 72 61 67 20 72 65 |cation.s| drag re|
|00002120| 63 65 69 76 65 20 68 61 | 6e 64 6c 65 72 20 69 73 |ceive ha|ndler is|
|00002130| 20 72 65 73 70 6f 6e 73 | 69 62 6c 65 20 66 6f 72 | respons|ible for|
|00002140| 20 61 63 63 65 70 74 69 | 6e 67 20 74 68 65 20 64 | accepti|ng the d|
|00002150| 72 6f 70 20 61 6e 64 20 | 70 65 72 66 6f 72 6d 69 |rop and |performi|
|00002160| 6e 67 20 74 68 65 20 61 | 63 74 75 61 6c 20 64 61 |ng the a|ctual da|
|00002170| 74 61 20 74 72 61 6e 73 | 61 63 74 69 6f 6e 20 74 |ta trans|action t|
|00002180| 68 61 74 20 69 73 20 72 | 65 71 75 69 72 65 64 20 |hat is r|equired |
|00002190| 74 6f 20 70 6c 61 63 65 | 20 74 68 65 20 73 65 6c |to place| the sel|
|000021a0| 65 63 74 69 6f 6e 20 61 | 74 20 69 74 73 20 66 69 |ection a|t its fi|
|000021b0| 6e 61 6c 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 2e |nal dest|ination.|
|000021c0| 0d 59 6f 75 72 20 64 72 | 61 67 20 72 65 63 65 69 |.Your dr|ag recei|
|000021d0| 76 65 20 68 61 6e 64 6c | 65 72 20 63 61 6e 20 69 |ve handl|er can i|
|000021e0| 6e 73 70 65 63 74 20 61 | 6e 64 20 72 65 71 75 65 |nspect a|nd reque|
|000021f0| 73 74 20 74 68 65 20 64 | 61 74 61 20 74 79 70 65 |st the d|ata type|
|00002200| 73 20 63 6f 6e 74 61 69 | 6e 65 64 20 77 69 74 68 |s contai|ned with|
|00002210| 69 6e 20 74 68 65 20 64 | 72 61 67 20 62 79 20 75 |in the d|rag by u|
|00002220| 73 69 6e 67 20 74 68 65 | 20 47 65 74 46 6c 61 76 |sing the| GetFlav|
|00002230| 6f 72 44 61 74 61 20 66 | 75 6e 63 74 69 6f 6e 20 |orData f|unction |
|00002240| 70 72 6f 76 69 64 65 64 | 20 62 79 20 74 68 65 20 |provided| by the |
|00002250| 44 72 61 67 20 4d 61 6e | 61 67 65 72 2e 0d 46 69 |Drag Man|ager..Fi|
|00002260| 67 75 72 65 20 32 2d 33 | 09 46 69 6e 69 73 68 69 |gure 2-3|.Finishi|
|00002270| 6e 67 20 61 20 44 72 61 | 67 0d 44 72 61 67 20 49 |ng a Dra|g.Drag I|
|00002280| 74 65 6d 73 0d 57 68 65 | 6e 20 64 72 61 67 67 69 |tems.Whe|n draggi|
|00002290| 6e 67 20 61 20 73 65 6c | 65 63 74 69 6f 6e 20 66 |ng a sel|ection f|
|000022a0| 72 6f 6d 20 79 6f 75 72 | 20 61 70 70 6c 69 63 61 |rom your| applica|
|000022b0| 74 69 6f 6e 2c 20 65 61 | 63 68 20 64 69 73 74 69 |tion, ea|ch disti|
|000022c0| 6e 63 74 20 6f 62 6a 65 | 63 74 20 62 65 69 6e 67 |nct obje|ct being|
|000022d0| 20 64 72 61 67 67 65 64 | 20 69 73 20 61 20 64 72 | dragged| is a dr|
|000022e0| 61 67 20 69 74 65 6d 2e | 20 20 54 68 65 20 66 6f |ag item.| The fo|
|000022f0| 6c 6c 6f 77 69 6e 67 20 | 6c 69 73 74 20 63 6f 6e |llowing |list con|
|00002300| 74 61 69 6e 73 20 65 78 | 61 6d 70 6c 65 73 20 6f |tains ex|amples o|
|00002310| 66 20 73 69 6e 67 6c 65 | 20 64 72 61 67 20 69 74 |f single| drag it|
|00002320| 65 6d 73 3a 0d 09 6e 09 | 61 6e 79 20 69 63 6f 6e |ems:..n.|any icon|
|00002330| 20 69 6e 20 74 68 65 20 | 46 69 6e 64 65 72 0d 09 | in the |Finder..|
|00002340| 6e 09 61 20 73 65 6c 65 | 63 74 69 6f 6e 20 69 6e |n.a sele|ction in|
|00002350| 20 61 20 62 69 74 6d 61 | 70 20 64 72 61 77 69 6e | a bitma|p drawin|
|00002360| 67 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 0d 09 6e |g applic|ation..n|
|00002370| 09 61 20 73 65 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |.a selec|tion of |
|00002380| 6f 62 6a 65 63 74 73 20 | 69 6e 20 61 6e 20 6f 62 |objects |in an ob|
|00002390| 6a 65 63 74 2d 6f 72 69 | 65 6e 74 65 64 20 67 72 |ject-ori|ented gr|
|000023a0| 61 70 68 69 63 73 20 61 | 70 70 6c 69 63 61 74 69 |aphics a|pplicati|
|000023b0| 6f 6e 0d 09 6e 09 61 20 | 63 6f 6e 74 69 6e 75 6f |on..n.a |continuo|
|000023c0| 75 73 20 72 61 6e 67 65 | 20 6f 66 20 74 65 78 74 |us range| of text|
|000023d0| 20 69 6e 20 61 20 77 6f | 72 64 20 70 72 6f 63 65 | in a wo|rd proce|
|000023e0| 73 73 6f 72 20 28 65 76 | 65 6e 20 69 66 20 74 68 |ssor (ev|en if th|
|000023f0| 65 20 74 65 78 74 20 73 | 65 6c 65 63 74 69 6f 6e |e text s|election|
|00002400| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 70 69 63 74 | contain|s a pict|
|00002410| 75 72 65 29 0d 54 68 65 | 72 65 20 61 72 65 20 6d |ure).The|re are m|
|00002420| 61 6e 79 20 63 69 72 63 | 75 6d 73 74 61 6e 63 65 |any circ|umstance|
|00002430| 73 20 74 68 61 74 20 72 | 65 73 75 6c 74 20 69 6e |s that r|esult in|
|00002440| 20 6d 75 6c 74 69 70 6c | 65 20 64 72 61 67 20 69 | multipl|e drag i|
|00002450| 74 65 6d 73 20 62 65 69 | 6e 67 20 64 72 61 67 67 |tems bei|ng dragg|
|00002460| 65 64 20 73 69 6d 75 6c | 74 61 6e 65 6f 75 73 6c |ed simul|taneousl|
|00002470| 79 3a 0d 09 6e 09 61 6e | 79 20 67 72 6f 75 70 20 |y:..n.an|y group |
|00002480| 6f 66 20 69 63 6f 6e 73 | 20 69 6e 20 74 68 65 20 |of icons| in the |
|00002490| 46 69 6e 64 65 72 0d 09 | 6e 09 61 20 64 69 73 63 |Finder..|n.a disc|
|000024a0| 6f 6e 74 69 6e 75 6f 75 | 73 20 74 65 78 74 20 73 |ontinuou|s text s|
|000024b0| 65 6c 65 63 74 69 6f 6e | 20 28 72 65 73 75 6c 74 |election| (result|
|000024c0| 69 6e 67 20 66 72 6f 6d | 20 75 73 69 6e 67 20 74 |ing from| using t|
|000024d0| 68 65 20 43 6f 6d 6d 61 | 6e 64 20 6b 65 79 29 0d |he Comma|nd key).|
|000024e0| 57 68 65 6e 20 64 65 63 | 69 64 69 6e 67 20 68 6f |When dec|iding ho|
|000024f0| 77 20 74 6f 20 62 72 65 | 61 6b 20 79 6f 75 72 20 |w to bre|ak your |
|00002500| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 73 65 |applicat|ion.s se|
|00002510| 6c 65 63 74 69 6f 6e 73 | 20 69 6e 74 6f 20 64 72 |lections| into dr|
|00002520| 61 67 20 69 74 65 6d 73 | 2c 20 6b 65 65 70 20 69 |ag items|, keep i|
|00002530| 6e 20 6d 69 6e 64 20 74 | 68 61 74 20 77 68 65 6e |n mind t|hat when|
|00002540| 20 64 72 61 67 67 69 6e | 67 20 74 6f 20 74 68 65 | draggin|g to the|
|00002550| 20 46 69 6e 64 65 72 2c | 20 65 61 63 68 20 64 72 | Finder,| each dr|
|00002560| 61 67 20 69 74 65 6d 20 | 72 65 73 75 6c 74 73 20 |ag item |results |
|00002570| 69 6e 20 61 20 73 65 70 | 61 72 61 74 65 20 d2 63 |in a sep|arate .c|
|00002580| 6c 69 70 70 69 6e 67 d3 | 20 69 63 6f 6e 2e 20 20 |lipping.| icon. |
|00002590| 4f 6e 65 20 6f 66 20 74 | 68 65 20 62 65 73 74 20 |One of t|he best |
|000025a0| 68 65 75 72 69 73 74 69 | 63 73 20 69 73 20 74 6f |heuristi|cs is to|
|000025b0| 20 64 72 61 77 20 64 69 | 73 74 69 6e 63 74 69 6f | draw di|stinctio|
|000025c0| 6e 73 20 66 72 6f 6d 20 | 79 6f 75 72 20 61 70 70 |ns from |your app|
|000025d0| 6c 69 63 61 74 69 6f 6e | d5 73 20 72 69 63 68 65 |lication|.s riche|
|000025e0| 73 74 20 64 61 74 61 20 | 66 6f 72 6d 61 74 20 28 |st data |format (|
|000025f0| 77 68 69 63 68 20 6d 61 | 79 20 62 65 20 79 6f 75 |which ma|y be you|
|00002600| 72 20 6f 77 6e 20 69 6e | 74 65 72 6e 61 6c 20 64 |r own in|ternal d|
|00002610| 61 74 61 20 66 6f 72 6d | 61 74 29 2e 0d 44 72 61 |ata form|at)..Dra|
|00002620| 67 20 49 74 65 6d 20 46 | 6c 61 76 6f 72 73 0d 4d |g Item F|lavors.M|
|00002630| 61 6e 79 20 69 74 65 6d | 73 20 74 68 61 74 20 63 |any item|s that c|
|00002640| 61 6e 20 62 65 20 64 72 | 61 67 67 65 64 20 28 73 |an be dr|agged (s|
|00002650| 75 63 68 20 61 73 20 74 | 65 78 74 2c 20 70 69 63 |uch as t|ext, pic|
|00002660| 74 75 72 65 73 20 6f 72 | 20 73 6f 75 6e 64 73 29 |tures or| sounds)|
|00002670| 20 63 61 6e 20 62 65 20 | 72 65 70 72 65 73 65 6e | can be |represen|
|00002680| 74 65 64 20 75 73 69 6e | 67 20 73 65 76 65 72 61 |ted usin|g severa|
|00002690| 6c 20 64 69 66 66 65 72 | 65 6e 74 20 64 61 74 61 |l differ|ent data|
|000026a0| 20 66 6f 72 6d 61 74 73 | 2e 20 20 54 68 65 20 44 | formats|. The D|
|000026b0| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 69 6e 74 72 |rag Mana|ger intr|
|000026c0| 6f 64 75 63 65 73 20 74 | 68 65 20 63 6f 6e 63 65 |oduces t|he conce|
|000026d0| 70 74 20 6f 66 20 64 72 | 61 67 20 69 74 65 6d 20 |pt of dr|ag item |
|000026e0| 66 6c 61 76 6f 72 73 20 | 74 6f 20 61 6c 6c 6f 77 |flavors |to allow|
|000026f0| 20 44 72 61 67 20 4d 61 | 6e 61 67 65 72 20 63 6c | Drag Ma|nager cl|
|00002700| 69 65 6e 74 73 20 74 6f | 20 73 65 6e 64 20 61 6e |ients to| send an|
|00002710| 64 20 72 65 63 65 69 76 | 65 20 6f 62 6a 65 63 74 |d receiv|e object|
|00002720| 73 20 69 6e 20 74 68 65 | 20 6d 6f 73 74 20 70 72 |s in the| most pr|
|00002730| 65 66 65 72 61 62 6c 65 | 20 64 61 74 61 20 66 6f |eferable| data fo|
|00002740| 72 6d 61 74 20 74 68 61 | 74 20 62 6f 74 68 20 74 |rmat tha|t both t|
|00002750| 68 65 20 73 65 6e 64 65 | 72 20 61 6e 64 20 72 65 |he sende|r and re|
|00002760| 63 65 69 76 65 72 20 63 | 61 6e 20 75 6e 64 65 72 |ceiver c|an under|
|00002770| 73 74 61 6e 64 2e 0d 57 | 68 65 6e 20 79 6f 75 20 |stand..W|hen you |
|00002780| 73 74 61 72 74 20 61 20 | 64 72 61 67 2c 20 79 6f |start a |drag, yo|
|00002790| 75 20 75 73 65 20 64 72 | 61 67 20 69 74 65 6d 20 |u use dr|ag item |
|000027a0| 66 6c 61 76 6f 72 73 20 | 74 6f 20 69 6e 66 6f 72 |flavors |to infor|
|000027b0| 6d 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |m the Dr|ag Manag|
|000027c0| 65 72 20 6f 66 20 65 61 | 63 68 20 6f 66 20 74 68 |er of ea|ch of th|
|000027d0| 65 20 64 61 74 61 20 66 | 6f 72 6d 61 74 73 20 74 |e data f|ormats t|
|000027e0| 68 61 74 20 79 6f 75 20 | 63 6f 75 6c 64 20 70 72 |hat you |could pr|
|000027f0| 6f 76 69 64 65 20 74 6f | 20 74 68 65 20 72 65 63 |ovide to| the rec|
|00002800| 65 69 76 65 72 20 6f 66 | 20 74 68 65 20 64 72 61 |eiver of| the dra|
|00002810| 67 2e 20 20 54 68 65 20 | 44 72 61 67 20 4d 61 6e |g. The |Drag Man|
|00002820| 61 67 65 72 20 70 72 6f | 76 69 64 65 73 20 61 6e |ager pro|vides an|
|00002830| 20 41 64 64 44 72 61 67 | 49 74 65 6d 46 6c 61 76 | AddDrag|ItemFlav|
|00002840| 6f 72 20 66 75 6e 63 74 | 69 6f 6e 20 74 6f 20 61 |or funct|ion to a|
|00002850| 64 64 20 66 6c 61 76 6f | 72 73 20 74 6f 20 64 72 |dd flavo|rs to dr|
|00002860| 61 67 20 69 74 65 6d 73 | 20 62 65 66 6f 72 65 20 |ag items| before |
|00002870| 73 74 61 72 74 69 6e 67 | 20 61 20 64 72 61 67 2e |starting| a drag.|
|00002880| 0d 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 61 20 |.For exa|mple, a |
|00002890| 74 65 78 74 20 73 65 6c | 65 63 74 69 6f 6e 20 6f |text sel|ection o|
|000028a0| 66 20 74 68 65 20 73 74 | 72 69 6e 67 20 d2 57 65 |f the st|ring .We|
|000028b0| 6c 63 6f 6d 65 20 74 6f | 20 4d 61 63 69 6e 74 6f |lcome to| Macinto|
|000028c0| 73 68 2e d3 20 69 73 20 | 72 65 70 72 65 73 65 6e |sh.. is |represen|
|000028d0| 74 65 64 20 69 6e 20 73 | 74 61 6e 64 61 72 64 20 |ted in s|tandard |
|000028e0| d4 54 45 58 54 d5 20 66 | 6f 72 6d 61 74 20 61 73 |.TEXT. f|ormat as|
|000028f0| 3a 0d 09 57 65 6c 63 6f | 6d 65 20 74 6f 20 4d 61 |:..Welco|me to Ma|
|00002900| 63 69 6e 74 6f 73 68 2e | 0d 54 68 65 20 73 74 61 |cintosh.|.The sta|
|00002910| 6e 64 61 72 64 20 d4 54 | 45 58 54 d5 20 66 6f 72 |ndard .T|EXT. for|
|00002920| 6d 61 74 20 64 6f 65 73 | 20 6e 6f 74 20 69 6e 63 |mat does| not inc|
|00002930| 6c 75 64 65 20 61 6e 79 | 20 69 6e 66 6f 72 6d 61 |lude any| informa|
|00002940| 74 69 6f 6e 20 73 75 63 | 68 20 61 73 20 74 68 65 |tion suc|h as the|
|00002950| 20 74 65 78 74 d5 73 20 | 66 6f 6e 74 20 6f 72 20 | text.s |font or |
|00002960| 73 69 7a 65 2e 20 20 54 | 68 65 20 73 74 61 6e 64 |size. T|he stand|
|00002970| 61 72 64 20 4d 61 63 69 | 6e 74 6f 73 68 20 73 74 |ard Maci|ntosh st|
|00002980| 79 6c 65 64 20 54 65 78 | 74 45 64 69 74 20 64 61 |yled Tex|tEdit da|
|00002990| 74 61 20 66 6f 72 6d 61 | 74 20 d4 73 74 79 6c d5 |ta forma|t .styl.|
|000029a0| 20 73 75 70 70 6c 65 6d | 65 6e 74 73 20 74 68 65 | supplem|ents the|
|000029b0| 20 d4 54 45 58 54 d5 20 | 64 61 74 61 20 73 74 72 | .TEXT. |data str|
|000029c0| 75 63 74 75 72 65 20 62 | 79 20 70 72 6f 76 69 64 |ucture b|y provid|
|000029d0| 69 6e 67 20 66 6f 6e 74 | 20 61 6e 64 20 73 74 79 |ing font| and sty|
|000029e0| 6c 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |le infor|mation. |
|000029f0| 20 54 68 65 20 d4 73 74 | 79 6c d5 20 64 61 74 61 | The .st|yl. data|
|00002a00| 20 66 6f 72 20 74 68 65 | 20 73 61 6d 65 20 73 65 | for the| same se|
|00002a10| 6c 65 63 74 69 6f 6e 20 | 28 69 6e 20 68 65 78 61 |lection |(in hexa|
|00002a20| 64 65 63 69 6d 61 6c 29 | 20 69 73 3a 0d 09 30 30 |decimal)| is:..00|
|00002a30| 30 30 3a 20 30 30 30 31 | 20 30 30 30 30 20 30 30 |00: 0001| 0000 00|
|00002a40| 30 30 20 30 30 30 45 0d | 09 30 30 30 38 3a 20 30 |00 000E.|.0008: 0|
|00002a50| 30 30 41 20 30 30 31 35 | 20 30 30 30 30 20 30 30 |00A 0015| 0000 00|
|00002a60| 30 43 0d 09 30 30 31 30 | 3a 20 30 30 30 30 20 30 |0C..0010|: 0000 0|
|00002a70| 30 30 30 20 30 30 30 30 | 0d 41 6e 6f 74 68 65 72 |000 0000|.Another|
|00002a80| 20 70 6f 70 75 6c 61 72 | 20 64 61 74 61 20 66 6f | popular| data fo|
|00002a90| 72 6d 61 74 20 69 73 20 | 72 69 63 68 20 74 65 78 |rmat is |rich tex|
|00002aa0| 74 20 66 6f 72 6d 61 74 | 2e 20 20 54 68 65 20 52 |t format|. The R|
|00002ab0| 54 46 20 64 61 74 61 20 | 66 6f 72 6d 61 74 20 69 |TF data |format i|
|00002ac0| 6e 63 6c 75 64 65 73 20 | 6d 75 63 68 20 6d 6f 72 |ncludes |much mor|
|00002ad0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |e inform|ation ab|
|00002ae0| 6f 75 74 20 74 68 65 20 | 66 6f 6e 74 73 20 61 6e |out the |fonts an|
|00002af0| 64 20 73 74 79 6c 65 73 | 2c 20 61 6e 64 20 61 6c |d styles|, and al|
|00002b00| 73 6f 20 69 6e 63 6c 75 | 64 65 73 20 69 6e 66 6f |so inclu|des info|
|00002b10| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 74 68 |rmation |about th|
|00002b20| 65 20 73 6f 75 72 63 65 | 20 64 6f 63 75 6d 65 6e |e source| documen|
|00002b30| 74 d5 73 20 6d 61 72 67 | 69 6e 73 2c 20 70 61 67 |t.s marg|ins, pag|
|00002b40| 65 20 73 69 7a 65 2c 20 | 63 6f 6c 75 6d 6e 73 2c |e size, |columns,|
|00002b50| 20 65 74 63 2e 20 20 54 | 68 65 20 73 61 6d 65 20 | etc. T|he same |
|00002b60| 74 65 78 74 20 73 65 6c | 65 63 74 69 6f 6e 20 69 |text sel|ection i|
|00002b70| 73 20 72 65 70 72 65 73 | 65 6e 74 65 64 20 69 6e |s repres|ented in|
|00002b80| 20 52 54 46 20 66 6f 72 | 6d 61 74 20 61 73 3a 0d | RTF for|mat as:.|
|00002b90| 09 7b 5c 72 74 66 31 5c | 6d 61 63 5c 64 65 66 66 |.{\rtf1\|mac\deff|
|00002ba0| 32 20 5c 77 69 6e 64 6f | 77 63 74 72 6c 5c 66 74 |2 \windo|wctrl\ft|
|00002bb0| 6e 62 6a 5c 66 72 61 63 | 77 69 64 74 68 20 0d 09 |nbj\frac|width ..|
|00002bc0| 20 20 5c 73 65 63 74 64 | 20 5c 6c 69 6e 65 6d 6f | \sectd| \linemo|
|00002bd0| 64 30 5c 6c 69 6e 65 78 | 30 5c 63 6f 6c 73 31 5c |d0\linex|0\cols1\|
|00002be0| 65 6e 64 6e 68 65 72 65 | 20 0d 09 20 20 5c 70 61 |endnhere| .. \pa|
|00002bf0| 72 64 5c 70 6c 61 69 6e | 20 7b 5c 66 32 31 20 57 |rd\plain| {\f21 W|
|00002c00| 65 6c 63 6f 6d 65 20 74 | 6f 20 4d 61 63 69 6e 74 |elcome t|o Macint|
|00002c10| 6f 73 68 2e 7d 0d 09 7d | 0d 54 68 65 72 65 20 61 |osh.}..}|.There a|
|00002c20| 72 65 20 6d 61 6e 79 20 | 6f 74 68 65 72 20 77 61 |re many |other wa|
|00002c30| 79 73 20 74 6f 20 72 65 | 70 72 65 73 65 6e 74 20 |ys to re|present |
|00002c40| 74 68 69 73 20 73 74 72 | 69 6e 67 2e 20 20 4d 6f |this str|ing. Mo|
|00002c50| 73 74 20 69 6d 70 6f 72 | 74 61 6e 74 6c 79 2c 20 |st impor|tantly, |
|00002c60| 69 66 20 74 68 65 20 75 | 73 65 72 20 64 72 61 67 |if the u|ser drag|
|00002c70| 73 20 61 20 73 65 6c 65 | 63 74 69 6f 6e 20 65 6e |s a sele|ction en|
|00002c80| 74 69 72 65 6c 79 20 77 | 69 74 68 69 6e 20 6f 6e |tirely w|ithin on|
|00002c90| 65 20 6f 66 20 79 6f 75 | 72 20 64 6f 63 75 6d 65 |e of you|r docume|
|00002ca0| 6e 74 73 2c 20 79 6f 75 | 20 6d 69 67 68 74 20 77 |nts, you| might w|
|00002cb0| 61 6e 74 20 74 6f 20 74 | 72 61 6e 73 66 65 72 20 |ant to t|ransfer |
|00002cc0| 74 68 65 20 64 61 74 61 | 20 69 6e 20 79 6f 75 72 |the data| in your|
|00002cd0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 6f | applica|tion.s o|
|00002ce0| 77 6e 20 69 6e 74 65 72 | 6e 61 6c 20 64 61 74 61 |wn inter|nal data|
|00002cf0| 20 66 6f 72 6d 61 74 2e | 0d 54 68 65 72 65 20 69 | format.|.There i|
|00002d00| 73 20 6e 6f 20 77 61 79 | 20 74 6f 20 6b 6e 6f 77 |s no way| to know|
|00002d10| 20 77 68 65 72 65 20 74 | 68 65 20 75 73 65 72 20 | where t|he user |
|00002d20| 69 6e 74 65 6e 64 73 20 | 74 6f 20 64 72 61 67 20 |intends |to drag |
|00002d30| 61 20 73 65 6c 65 63 74 | 69 6f 6e 20 77 68 65 6e |a select|ion when|
|00002d40| 20 73 74 61 72 74 69 6e | 67 20 61 20 64 72 61 67 | startin|g a drag|
|00002d50| 2e 20 20 54 68 65 20 75 | 73 65 72 20 6d 61 79 20 |. The u|ser may |
|00002d60| 77 61 6e 74 20 74 6f 20 | 64 72 61 67 20 77 69 74 |want to |drag wit|
|00002d70| 68 69 6e 20 6f 6e 65 20 | 6f 66 20 79 6f 75 72 20 |hin one |of your |
|00002d80| 77 69 6e 64 6f 77 73 2c | 20 62 65 74 77 65 65 6e |windows,| between|
|00002d90| 20 74 77 6f 20 6f 66 20 | 79 6f 75 72 20 77 69 6e | two of |your win|
|00002da0| 64 6f 77 73 20 6f 72 20 | 74 6f 20 61 20 64 69 66 |dows or |to a dif|
|00002db0| 66 65 72 65 6e 74 20 61 | 70 70 6c 69 63 61 74 69 |ferent a|pplicati|
|00002dc0| 6f 6e d5 73 20 77 69 6e | 64 6f 77 2e 20 20 44 69 |on.s win|dow. Di|
|00002dd0| 66 66 65 72 65 6e 74 20 | 64 65 73 74 69 6e 61 74 |fferent |destinat|
|00002de0| 69 6f 6e 73 20 6d 61 79 | 20 70 72 65 66 65 72 20 |ions may| prefer |
|00002df0| 64 69 66 66 65 72 65 6e | 74 20 64 61 74 61 20 66 |differen|t data f|
|00002e00| 6f 72 6d 61 74 73 2e 20 | 20 49 6e 20 74 68 65 20 |ormats. | In the |
|00002e10| 74 65 78 74 20 73 65 6c | 65 63 74 69 6f 6e 20 65 |text sel|ection e|
|00002e20| 78 61 6d 70 6c 65 2c 20 | 79 6f 75 72 20 6f 77 6e |xample, |your own|
|00002e30| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6d 69 67 | applica|tion mig|
|00002e40| 68 74 20 70 72 65 66 65 | 72 20 69 74 73 20 6f 77 |ht prefe|r its ow|
|00002e50| 6e 20 69 6e 74 65 72 6e | 61 6c 20 64 61 74 61 20 |n intern|al data |
|00002e60| 66 6f 72 6d 61 74 2e 20 | 20 41 6e 6f 74 68 65 72 |format. | Another|
|00002e70| 20 73 6f 70 68 69 73 74 | 69 63 61 74 65 64 20 77 | sophist|icated w|
|00002e80| 6f 72 64 20 70 72 6f 63 | 65 73 73 6f 72 20 6d 61 |ord proc|essor ma|
|00002e90| 79 20 6e 6f 74 20 75 6e | 64 65 72 73 74 61 6e 64 |y not un|derstand|
|00002ea0| 20 79 6f 75 72 20 69 6e | 74 65 72 6e 61 6c 20 64 | your in|ternal d|
|00002eb0| 61 74 61 20 66 6f 72 6d | 61 74 2c 20 62 75 74 20 |ata form|at, but |
|00002ec0| 6d 61 79 20 70 72 65 66 | 65 72 20 52 54 46 20 6f |may pref|er RTF o|
|00002ed0| 76 65 72 20 73 74 79 6c | 65 64 20 74 65 78 74 2e |ver styl|ed text.|
|00002ee0| 20 20 41 20 73 69 6d 70 | 6c 65 20 54 65 78 74 45 | A simp|le TextE|
|00002ef0| 64 69 74 20 66 69 65 6c | 64 2c 20 73 75 63 68 20 |dit fiel|d, such |
|00002f00| 61 73 20 74 68 65 20 43 | 6f 6d 6d 65 6e 74 73 20 |as the C|omments |
|00002f10| 66 69 65 6c 64 20 6f 66 | 20 74 68 65 20 46 69 6e |field of| the Fin|
|00002f20| 64 65 72 d5 73 20 47 65 | 74 20 49 6e 66 6f 20 77 |der.s Ge|t Info w|
|00002f30| 69 6e 64 6f 77 20 6d 61 | 79 20 6f 6e 6c 79 20 62 |indow ma|y only b|
|00002f40| 65 20 61 62 6c 65 20 74 | 6f 20 61 63 63 65 70 74 |e able t|o accept|
|00002f50| 20 74 68 65 20 70 6c 61 | 69 6e 20 74 65 78 74 2e | the pla|in text.|
|00002f60| 0d 45 61 63 68 20 66 6c | 61 76 6f 72 20 68 61 73 |.Each fl|avor has|
|00002f70| 20 69 74 73 20 6f 77 6e | 20 73 65 74 20 6f 66 20 | its own| set of |
|00002f80| 66 6c 61 67 73 20 61 73 | 73 6f 63 69 61 74 65 64 |flags as|sociated|
|00002f90| 20 77 69 74 68 20 69 74 | 2e 20 20 54 68 65 73 65 | with it|. These|
|00002fa0| 20 66 6c 61 67 73 20 61 | 72 65 20 75 73 65 64 20 | flags a|re used |
|00002fb0| 62 79 20 74 68 65 20 44 | 72 61 67 20 4d 61 6e 61 |by the D|rag Mana|
|00002fc0| 67 65 72 20 61 6e 64 20 | 69 74 73 20 63 6c 69 65 |ger and |its clie|
|00002fd0| 6e 74 73 20 74 6f 20 70 | 72 6f 76 69 64 65 20 61 |nts to p|rovide a|
|00002fe0| 64 64 69 74 69 6f 6e 61 | 6c 20 69 6e 66 6f 72 6d |dditiona|l inform|
|00002ff0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 65 61 63 68 |ation ab|out each|
|00003000| 20 64 72 61 67 20 69 74 | 65 6d 20 66 6c 61 76 6f | drag it|em flavo|
|00003010| 72 2e 20 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |r. The |followin|
|00003020| 67 20 66 6c 61 67 73 20 | 6d 61 79 20 62 65 20 73 |g flags |may be s|
|00003030| 65 74 20 66 6f 72 20 65 | 61 63 68 20 66 6c 61 76 |et for e|ach flav|
|00003040| 6f 72 3a 0d 46 6c 61 76 | 6f 72 20 66 6c 61 67 20 |or:.Flav|or flag |
|00003050| 64 65 73 63 72 69 70 74 | 69 6f 6e 73 0d 66 6c 61 |descript|ions.fla|
|00003060| 76 6f 72 53 65 6e 64 65 | 72 4f 6e 6c 79 0d 09 54 |vorSende|rOnly..T|
|00003070| 68 69 73 20 66 6c 61 67 | 20 69 73 20 73 65 74 20 |his flag| is set |
|00003080| 62 79 20 74 68 65 20 73 | 65 6e 64 65 72 20 69 66 |by the s|ender if|
|00003090| 20 74 68 65 20 66 6c 61 | 76 6f 72 20 73 68 6f 75 | the fla|vor shou|
|000030a0| 6c 64 20 6f 6e 6c 79 20 | 62 65 20 61 76 61 69 6c |ld only |be avail|
|000030b0| 61 62 6c 65 20 74 6f 20 | 74 68 65 20 73 65 6e 64 |able to |the send|
|000030c0| 65 72 20 6f 66 20 74 68 | 65 20 64 72 61 67 2e 20 |er of th|e drag. |
|000030d0| 20 46 6c 61 76 6f 72 73 | 20 74 68 61 74 20 61 72 | Flavors| that ar|
|000030e0| 65 20 6d 61 72 6b 65 64 | 20 77 69 74 68 20 74 68 |e marked| with th|
|000030f0| 69 73 20 66 6c 61 67 20 | 64 6f 20 6e 6f 74 20 61 |is flag |do not a|
|00003100| 70 70 65 61 72 20 74 6f | 20 61 6e 79 20 6f 74 68 |ppear to| any oth|
|00003110| 65 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6f |er appli|cation o|
|00003120| 74 68 65 72 20 74 68 61 | 6e 20 74 68 65 20 73 65 |ther tha|n the se|
|00003130| 6e 64 65 72 2e 0d 66 6c | 61 76 6f 72 53 65 6e 64 |nder..fl|avorSend|
|00003140| 65 72 54 72 61 6e 73 6c | 61 74 65 64 0d 09 53 65 |erTransl|ated..Se|
|00003150| 74 20 69 66 20 74 68 65 | 20 66 6c 61 76 6f 72 20 |t if the| flavor |
|00003160| 64 61 74 61 20 69 73 20 | 74 72 61 6e 73 6c 61 74 |data is |translat|
|00003170| 65 64 20 62 79 20 74 68 | 65 20 73 65 6e 64 65 72 |ed by th|e sender|
|00003180| 2e 20 20 54 68 69 73 20 | 61 74 74 72 69 62 75 74 |. This |attribut|
|00003190| 65 20 69 73 20 75 73 65 | 66 75 6c 20 69 66 20 74 |e is use|ful if t|
|000031a0| 68 65 20 72 65 63 65 69 | 76 65 72 20 6e 65 65 64 |he recei|ver need|
|000031b0| 73 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 69 |s to det|ermine i|
|000031c0| 66 20 74 68 65 20 73 65 | 6e 64 65 72 20 69 73 20 |f the se|nder is |
|000031d0| 70 65 72 66 6f 72 6d 69 | 6e 67 20 69 74 73 20 6f |performi|ng its o|
|000031e0| 77 6e 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 74 |wn trans|lation t|
|000031f0| 6f 20 67 65 6e 65 72 61 | 74 65 20 74 68 69 73 20 |o genera|te this |
|00003200| 64 61 74 61 20 74 79 70 | 65 2e 20 20 54 68 65 20 |data typ|e. The |
|00003210| 46 69 6e 64 65 72 20 64 | 6f 65 73 20 6e 6f 74 20 |Finder d|oes not |
|00003220| 73 61 76 65 20 74 72 61 | 6e 73 6c 61 74 65 64 20 |save tra|nslated |
|00003230| 74 79 70 65 73 20 69 6e | 74 6f 20 63 6c 69 70 70 |types in|to clipp|
|00003240| 69 6e 67 20 66 69 6c 65 | 73 2e 0d 66 6c 61 76 6f |ing file|s..flavo|
|00003250| 72 4e 6f 74 53 61 76 65 | 64 0d 09 53 65 74 20 62 |rNotSave|d..Set b|
|00003260| 79 20 74 68 65 20 73 65 | 6e 64 65 72 20 69 66 20 |y the se|nder if |
|00003270| 74 68 65 20 66 6c 61 76 | 6f 72 20 64 61 74 61 20 |the flav|or data |
|00003280| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 73 74 |should n|ot be st|
|00003290| 6f 72 65 64 20 62 79 20 | 74 68 65 20 72 65 63 65 |ored by |the rece|
|000032a0| 69 76 65 72 2e 20 20 54 | 68 69 73 20 66 6c 61 67 |iver. T|his flag|
|000032b0| 20 69 73 20 75 73 65 66 | 75 6c 20 66 6f 72 20 6d | is usef|ul for m|
|000032c0| 61 72 6b 69 6e 67 20 66 | 6c 61 76 6f 72 20 64 61 |arking f|lavor da|
|000032d0| 74 61 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 63 |ta that |will bec|
|000032e0| 6f 6d 65 20 73 74 61 6c | 65 20 61 66 74 65 72 20 |ome stal|e after |
|000032f0| 74 68 65 20 64 72 61 67 | 20 69 73 20 63 6f 6d 70 |the drag| is comp|
|00003300| 6c 65 74 65 64 2e 20 20 | 52 65 63 65 69 76 65 72 |leted. |Receiver|
|00003310| 73 20 74 68 61 74 20 73 | 74 6f 72 65 20 64 61 74 |s that s|tore dat|
|00003320| 61 20 73 68 6f 75 6c 64 | 20 6e 6f 74 20 73 74 6f |a should| not sto|
|00003330| 72 65 20 66 6c 61 76 6f | 72 73 20 74 68 61 74 20 |re flavo|rs that |
|00003340| 61 72 65 20 6d 61 72 6b | 65 64 20 77 69 74 68 20 |are mark|ed with |
|00003350| 74 68 69 73 20 66 6c 61 | 67 2e 20 20 46 6c 61 76 |this fla|g. Flav|
|00003360| 6f 72 20 74 79 70 65 73 | 20 6d 61 72 6b 65 64 20 |or types| marked |
|00003370| 77 69 74 68 20 74 68 69 | 73 20 66 6c 61 67 20 61 |with thi|s flag a|
|00003380| 72 65 20 6e 6f 74 20 73 | 74 6f 72 65 64 20 62 79 |re not s|tored by|
|00003390| 20 74 68 65 20 46 69 6e | 64 65 72 20 69 6e 20 63 | the Fin|der in c|
|000033a0| 6c 69 70 70 69 6e 67 20 | 66 69 6c 65 73 2e 0d 66 |lipping |files..f|
|000033b0| 6c 61 76 6f 72 53 79 73 | 74 65 6d 54 72 61 6e 73 |lavorSys|temTrans|
|000033c0| 6c 61 74 65 64 0d 09 53 | 65 74 20 69 66 20 74 68 |lated..S|et if th|
|000033d0| 65 20 66 6c 61 76 6f 72 | 20 64 61 74 61 20 69 73 |e flavor| data is|
|000033e0| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 74 68 65 | provide|d by the|
|000033f0| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 4d 61 6e | Transla|tion Man|
|00003400| 61 67 65 72 2e 20 20 49 | 66 20 74 68 69 73 20 66 |ager. I|f this f|
|00003410| 6c 61 76 6f 72 20 69 73 | 20 72 65 71 75 65 73 74 |lavor is| request|
|00003420| 65 64 2c 20 74 68 65 20 | 44 72 61 67 20 4d 61 6e |ed, the |Drag Man|
|00003430| 61 67 65 72 20 77 69 6c | 6c 20 6f 62 74 61 69 6e |ager wil|l obtain|
|00003440| 20 74 68 65 20 72 65 71 | 75 69 72 65 64 20 64 61 | the req|uired da|
|00003450| 74 61 20 74 79 70 65 20 | 66 72 6f 6d 20 74 68 65 |ta type |from the|
|00003460| 20 73 65 6e 64 65 72 20 | 61 6e 64 20 74 68 65 6e | sender |and then|
|00003470| 20 69 74 20 77 69 6c 6c | 20 75 73 65 20 74 68 65 | it will| use the|
|00003480| 20 54 72 61 6e 73 6c 61 | 74 69 6f 6e 20 4d 61 6e | Transla|tion Man|
|00003490| 61 67 65 72 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |ager to |provide |
|000034a0| 74 68 65 20 64 61 74 61 | 20 74 68 61 74 20 74 68 |the data| that th|
|000034b0| 65 20 72 65 63 65 69 76 | 65 72 20 72 65 71 75 65 |e receiv|er reque|
|000034c0| 73 74 65 64 2e 20 20 46 | 6c 61 76 6f 72 20 74 79 |sted. F|lavor ty|
|000034d0| 70 65 73 20 6d 61 72 6b | 65 64 20 77 69 74 68 20 |pes mark|ed with |
|000034e0| 74 68 69 73 20 66 6c 61 | 67 20 61 72 65 20 6e 6f |this fla|g are no|
|000034f0| 74 20 73 74 6f 72 65 64 | 20 62 79 20 74 68 65 20 |t stored| by the |
|00003500| 46 69 6e 64 65 72 20 69 | 6e 20 63 6c 69 70 70 69 |Finder i|n clippi|
|00003510| 6e 67 20 66 69 6c 65 73 | 2e 0d 44 72 61 67 20 48 |ng files|..Drag H|
|00003520| 61 6e 64 6c 65 72 73 0d | 59 6f 75 20 72 65 67 69 |andlers.|You regi|
|00003530| 73 74 65 72 20 77 69 74 | 68 20 74 68 65 20 44 72 |ster wit|h the Dr|
|00003540| 61 67 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 62 |ag Manag|er callb|
|00003550| 61 63 6b 20 72 6f 75 74 | 69 6e 65 73 20 74 68 61 |ack rout|ines tha|
|00003560| 74 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |t the Dr|ag Manag|
|00003570| 65 72 20 63 61 6c 6c 73 | 20 74 6f 20 61 6c 6c 6f |er calls| to allo|
|00003580| 77 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |w your a|pplicati|
|00003590| 6f 6e 20 74 6f 20 69 6d | 70 6c 65 6d 65 6e 74 20 |on to im|plement |
|000035a0| 64 72 61 67 67 69 6e 67 | 2e 20 20 54 68 65 20 44 |dragging|. The D|
|000035b0| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 75 73 65 73 |rag Mana|ger uses|
|000035c0| 20 74 77 6f 20 64 69 66 | 66 65 72 65 6e 74 20 74 | two dif|ferent t|
|000035d0| 79 70 65 73 20 6f 66 20 | 63 61 6c 6c 62 61 63 6b |ypes of |callback|
|000035e0| 20 72 6f 75 74 69 6e 65 | 73 2c 20 63 61 6c 6c 65 | routine|s, calle|
|000035f0| 64 20 64 72 61 67 20 68 | 61 6e 64 6c 65 72 73 20 |d drag h|andlers |
|00003600| 61 6e 64 20 64 72 61 67 | 20 70 72 6f 63 65 64 75 |and drag| procedu|
|00003610| 72 65 73 2e 20 20 44 72 | 61 67 20 68 61 6e 64 6c |res. Dr|ag handl|
|00003620| 65 72 73 20 61 72 65 20 | 72 6f 75 74 69 6e 65 73 |ers are |routines|
|00003630| 20 74 68 61 74 20 61 72 | 65 20 69 6e 73 74 61 6c | that ar|e instal|
|00003640| 6c 65 64 20 6f 6e 20 77 | 69 6e 64 6f 77 73 20 74 |led on w|indows t|
|00003650| 68 61 74 20 74 68 65 20 | 44 72 61 67 20 4d 61 6e |hat the |Drag Man|
|00003660| 61 67 65 72 20 75 73 65 | 73 20 77 68 65 6e 20 64 |ager use|s when d|
|00003670| 72 61 67 67 69 6e 67 20 | 6f 76 65 72 20 74 68 61 |ragging |over tha|
|00003680| 74 20 77 69 6e 64 6f 77 | 2e 20 20 44 72 61 67 20 |t window|. Drag |
|00003690| 70 72 6f 63 65 64 75 72 | 65 73 20 61 72 65 20 72 |procedur|es are r|
|000036a0| 6f 75 74 69 6e 65 73 20 | 74 68 61 74 20 61 72 65 |outines |that are|
|000036b0| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 44 72 61 | used by| the Dra|
|000036c0| 67 20 4d 61 6e 61 67 65 | 72 20 64 75 72 69 6e 67 |g Manage|r during|
|000036d0| 20 61 20 64 72 61 67 20 | 72 65 67 61 72 64 6c 65 | a drag |regardle|
|000036e0| 73 73 20 6f 66 20 77 68 | 69 63 68 20 77 69 6e 64 |ss of wh|ich wind|
|000036f0| 6f 77 20 74 68 65 20 75 | 73 65 72 20 6d 61 79 20 |ow the u|ser may |
|00003700| 62 65 20 64 72 61 67 67 | 69 6e 67 20 6f 76 65 72 |be dragg|ing over|
|00003710| 2e 20 20 54 68 65 20 44 | 72 61 67 20 4d 61 6e 61 |. The D|rag Mana|
|00003720| 67 65 72 20 61 6c 6c 6f | 77 73 20 79 6f 75 20 74 |ger allo|ws you t|
|00003730| 6f 20 69 6e 73 74 61 6c | 6c 20 74 68 65 20 66 6f |o instal|l the fo|
|00003740| 6c 6c 6f 77 69 6e 67 20 | 64 72 61 67 20 68 61 6e |llowing |drag han|
|00003750| 64 6c 65 72 73 20 6f 6e | 20 79 6f 75 72 20 61 70 |dlers on| your ap|
|00003760| 70 6c 69 63 61 74 69 6f | 6e d5 73 20 77 69 6e 64 |plicatio|n.s wind|
|00003770| 6f 77 73 3a 0d 09 6e 09 | 61 20 64 72 61 67 20 74 |ows:..n.|a drag t|
|00003780| 72 61 63 6b 69 6e 67 20 | 68 61 6e 64 6c 65 72 20 |racking |handler |
|00003790| 74 68 61 74 20 74 68 65 | 20 44 72 61 67 20 4d 61 |that the| Drag Ma|
|000037a0| 6e 61 67 65 72 20 63 61 | 6c 6c 73 20 77 68 65 6e |nager ca|lls when|
|000037b0| 20 74 68 65 20 75 73 65 | 72 20 64 72 61 67 73 20 | the use|r drags |
|000037c0| 61 20 73 65 6c 65 63 74 | 69 6f 6e 20 74 68 72 6f |a select|ion thro|
|000037d0| 75 67 68 20 6f 6e 65 20 | 6f 66 20 79 6f 75 72 20 |ugh one |of your |
|000037e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 77 69 |applicat|ion.s wi|
|000037f0| 6e 64 6f 77 73 2e 20 20 | 54 68 69 73 20 61 6c 6c |ndows. |This all|
|00003800| 6f 77 73 20 79 6f 75 20 | 74 6f 20 74 72 61 63 6b |ows you |to track|
|00003810| 20 74 68 65 20 64 72 61 | 67 20 77 69 74 68 69 6e | the dra|g within|
|00003820| 20 74 68 65 20 77 69 6e | 64 6f 77 0d 09 6e 09 61 | the win|dow..n.a|
|00003830| 20 64 72 61 67 20 72 65 | 63 65 69 76 65 20 68 61 | drag re|ceive ha|
|00003840| 6e 64 6c 65 72 20 74 68 | 61 74 20 74 68 65 20 44 |ndler th|at the D|
|00003850| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |rag Mana|ger call|
|00003860| 73 20 77 68 65 6e 20 74 | 68 65 20 75 73 65 72 20 |s when t|he user |
|00003870| 66 69 6e 69 73 68 65 73 | 20 61 20 64 72 61 67 20 |finishes| a drag |
|00003880| 69 6e 20 6f 6e 65 20 6f | 66 20 79 6f 75 72 20 61 |in one o|f your a|
|00003890| 70 70 6c 69 63 61 74 69 | 6f 6e d5 73 20 77 69 6e |pplicati|on.s win|
|000038a0| 64 6f 77 73 0d 54 68 65 | 20 44 72 61 67 20 4d 61 |dows.The| Drag Ma|
|000038b0| 6e 61 67 65 72 20 70 72 | 6f 76 69 64 65 73 20 61 |nager pr|ovides a|
|000038c0| 20 70 61 69 72 20 6f 66 | 20 49 6e 73 74 61 6c 6c | pair of| Install|
|000038d0| 48 61 6e 64 6c 65 72 20 | 61 6e 64 20 52 65 6d 6f |Handler |and Remo|
|000038e0| 76 65 48 61 6e 64 6c 65 | 72 20 72 6f 75 74 69 6e |veHandle|r routin|
|000038f0| 65 73 20 74 68 61 74 20 | 61 6c 6c 6f 77 20 79 6f |es that |allow yo|
|00003900| 75 20 74 6f 20 72 65 67 | 69 73 74 65 72 20 68 61 |u to reg|ister ha|
|00003910| 6e 64 6c 65 72 73 20 6f | 66 20 65 61 63 68 20 6f |ndlers o|f each o|
|00003920| 66 20 74 68 65 73 65 20 | 74 77 6f 20 74 79 70 65 |f these |two type|
|00003930| 73 20 77 69 74 68 20 77 | 69 6e 64 6f 77 73 20 69 |s with w|indows i|
|00003940| 6e 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |n your a|pplicati|
|00003950| 6f 6e 2e 20 20 59 6f 75 | 20 63 61 6e 20 72 65 67 |on. You| can reg|
|00003960| 69 73 74 65 72 20 61 20 | 64 69 66 66 65 72 65 6e |ister a |differen|
|00003970| 74 20 73 65 74 20 6f 66 | 20 68 61 6e 64 6c 65 72 |t set of| handler|
|00003980| 73 20 74 6f 20 62 65 20 | 75 73 65 64 20 66 6f 72 |s to be |used for|
|00003990| 20 65 61 63 68 20 77 69 | 6e 64 6f 77 20 69 6e 20 | each wi|ndow in |
|000039a0| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|000039b0| 2e 20 20 59 6f 75 20 63 | 61 6e 20 61 6c 73 6f 20 |. You c|an also |
|000039c0| 72 65 67 69 73 74 65 72 | 20 77 69 74 68 20 74 68 |register| with th|
|000039d0| 65 20 44 72 61 67 20 4d | 61 6e 61 67 65 72 20 61 |e Drag M|anager a|
|000039e0| 20 73 65 74 20 6f 66 20 | 68 61 6e 64 6c 65 72 73 | set of |handlers|
|000039f0| 20 74 6f 20 62 65 20 75 | 73 65 64 20 77 68 65 6e | to be u|sed when|
|00003a00| 20 61 20 77 69 6e 64 6f | 77 20 64 6f 65 73 20 6e | a windo|w does n|
|00003a10| 6f 74 20 68 61 76 65 20 | 69 74 73 20 6f 77 6e 20 |ot have |its own |
|00003a20| 68 61 6e 64 6c 65 72 73 | 2e 0d 49 66 20 79 6f 75 |handlers|..If you|
|00003a30| 20 61 73 73 69 67 6e 20 | 6d 6f 72 65 20 74 68 61 | assign |more tha|
|00003a40| 6e 20 6f 6e 65 20 68 61 | 6e 64 6c 65 72 20 6f 66 |n one ha|ndler of|
|00003a50| 20 74 68 65 20 73 61 6d | 65 20 74 79 70 65 20 6f | the sam|e type o|
|00003a60| 6e 20 74 68 65 20 73 61 | 6d 65 20 77 69 6e 64 6f |n the sa|me windo|
|00003a70| 77 2c 20 74 68 65 20 44 | 72 61 67 20 4d 61 6e 61 |w, the D|rag Mana|
|00003a80| 67 65 72 20 63 61 6c 6c | 73 20 65 61 63 68 20 6f |ger call|s each o|
|00003a90| 66 20 74 68 65 73 65 20 | 68 61 6e 64 6c 65 72 20 |f these |handler |
|00003aa0| 72 6f 75 74 69 6e 65 73 | 20 69 6e 20 74 68 65 20 |routines| in the |
|00003ab0| 6f 72 64 65 72 20 74 68 | 61 74 20 74 68 65 79 20 |order th|at they |
|00003ac0| 77 65 72 65 20 69 6e 73 | 74 61 6c 6c 65 64 2e 20 |were ins|talled. |
|00003ad0| 20 46 69 67 75 72 65 20 | 32 2d 34 20 73 68 6f 77 | Figure |2-4 show|
|00003ae0| 73 20 61 6e 20 65 78 61 | 6d 70 6c 65 20 6f 66 20 |s an exa|mple of |
|00003af0| 74 68 65 20 74 72 61 63 | 6b 69 6e 67 20 68 61 6e |the trac|king han|
|00003b00| 64 6c 65 72 20 72 65 67 | 69 73 74 72 79 20 66 6f |dler reg|istry fo|
|00003b10| 72 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |r an app|lication|
|00003b20| 20 74 68 61 74 20 68 61 | 73 20 69 6e 73 74 61 6c | that ha|s instal|
|00003b30| 6c 65 64 20 74 68 65 20 | 73 61 6d 65 20 68 61 6e |led the |same han|
|00003b40| 64 6c 65 72 20 66 6f 72 | 20 69 74 73 20 d2 47 72 |dler for| its .Gr|
|00003b50| 61 70 68 69 63 73 d3 20 | 61 6e 64 20 d2 44 6f 63 |aphics. |and .Doc|
|00003b60| 75 6d 65 6e 74 73 d3 20 | 77 69 6e 64 6f 77 2c 20 |uments. |window, |
|00003b70| 61 6e 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 68 61 |an addit|ional ha|
|00003b80| 6e 64 6c 65 72 20 66 6f | 72 20 69 74 73 20 d2 47 |ndler fo|r its .G|
|00003b90| 72 61 70 68 69 63 73 d3 | 20 77 69 6e 64 6f 77 2c |raphics.| window,|
|00003ba0| 20 61 6e 64 20 61 20 68 | 61 6e 64 6c 65 72 20 74 | and a h|andler t|
|00003bb0| 6f 20 62 65 20 75 73 65 | 64 20 66 6f 72 20 61 6c |o be use|d for al|
|00003bc0| 6c 20 77 69 6e 64 6f 77 | 73 20 69 6e 20 74 68 65 |l window|s in the|
|00003bd0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 6e 63 | applica|tion inc|
|00003be0| 6c 75 64 69 6e 67 20 74 | 68 65 20 d2 47 72 61 70 |luding t|he .Grap|
|00003bf0| 68 69 63 73 d3 20 61 6e | 64 20 d2 44 6f 63 75 6d |hics. an|d .Docum|
|00003c00| 65 6e 74 73 d3 20 77 69 | 6e 64 6f 77 73 2e 20 20 |ents. wi|ndows. |
|00003c10| 57 68 65 6e 20 74 68 65 | 20 44 72 61 67 20 4d 61 |When the| Drag Ma|
|00003c20| 6e 61 67 65 72 20 74 72 | 61 63 6b 73 20 61 20 64 |nager tr|acks a d|
|00003c30| 72 61 67 20 74 68 72 6f | 75 67 68 20 74 68 65 20 |rag thro|ugh the |
|00003c40| d2 44 6f 63 75 6d 65 6e | 74 73 d3 20 77 69 6e 64 |.Documen|ts. wind|
|00003c50| 6f 77 2c 20 48 61 6e 64 | 6c 65 72 20 31 20 69 73 |ow, Hand|ler 1 is|
|00003c60| 20 63 61 6c 6c 65 64 20 | 66 6f 6c 6c 6f 77 65 64 | called |followed|
|00003c70| 20 62 79 20 48 61 6e 64 | 6c 65 72 20 33 20 62 65 | by Hand|ler 3 be|
|00003c80| 69 6e 67 20 63 61 6c 6c | 65 64 2e 20 20 57 68 65 |ing call|ed. Whe|
|00003c90| 6e 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |n the Dr|ag Manag|
|00003ca0| 65 72 20 74 72 61 63 6b | 73 20 61 20 64 72 61 67 |er track|s a drag|
|00003cb0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 d2 47 72 | through| the .Gr|
|00003cc0| 61 70 68 69 63 73 d3 20 | 77 69 6e 64 6f 77 2c 20 |aphics. |window, |
|00003cd0| 48 61 6e 64 6c 65 72 73 | 20 31 2c 20 32 20 61 6e |Handlers| 1, 2 an|
|00003ce0| 64 20 33 20 74 68 72 65 | 65 20 61 72 65 20 63 61 |d 3 thre|e are ca|
|00003cf0| 6c 6c 65 64 2c 20 69 6e | 20 6f 72 64 65 72 2e 20 |lled, in| order. |
|00003d00| 20 46 69 6e 61 6c 6c 79 | 2c 20 69 66 20 74 68 65 | Finally|, if the|
|00003d10| 20 44 72 61 67 20 4d 61 | 6e 61 67 65 72 20 74 72 | Drag Ma|nager tr|
|00003d20| 61 63 6b 73 20 61 20 64 | 72 61 67 20 74 68 72 6f |acks a d|rag thro|
|00003d30| 75 67 68 20 61 6e 79 20 | 6f 74 68 65 72 20 77 69 |ugh any |other wi|
|00003d40| 6e 64 6f 77 20 69 6e 20 | 74 68 65 20 61 70 70 6c |ndow in |the appl|
|00003d50| 69 63 61 74 69 6f 6e 2c | 20 6f 6e 6c 79 20 48 61 |ication,| only Ha|
|00003d60| 6e 64 6c 65 72 20 33 20 | 69 73 20 63 61 6c 6c 65 |ndler 3 |is calle|
|00003d70| 64 2e 0d 46 69 67 75 72 | 65 20 32 2d 34 09 45 78 |d..Figur|e 2-4.Ex|
|00003d80| 61 6d 70 6c 65 20 d2 54 | 72 61 63 6b 69 6e 67 d3 |ample .T|racking.|
|00003d90| 20 48 61 6e 64 6c 65 72 | 20 52 65 67 69 73 74 72 | Handler| Registr|
|00003da0| 79 0d 49 6e 20 74 68 65 | 20 6e 65 78 74 20 74 68 |y.In the| next th|
|00003db0| 72 65 65 20 73 65 63 74 | 69 6f 6e 73 2c 20 74 68 |ree sect|ions, th|
|00003dc0| 65 20 64 72 61 67 20 74 | 72 61 63 6b 69 6e 67 20 |e drag t|racking |
|00003dd0| 61 6e 64 20 64 72 61 67 | 20 72 65 63 65 69 76 65 |and drag| receive|
|00003de0| 20 68 61 6e 64 6c 65 72 | 20 74 79 70 65 73 20 61 | handler| types a|
|00003df0| 72 65 20 64 65 73 63 72 | 69 62 65 64 20 69 6e 20 |re descr|ibed in |
|00003e00| 6d 6f 72 65 20 64 65 74 | 61 69 6c 2e 0d 44 72 61 |more det|ail..Dra|
|00003e10| 67 20 54 72 61 63 6b 69 | 6e 67 0d 57 68 69 6c 65 |g Tracki|ng.While|
|00003e20| 20 74 68 65 20 75 73 65 | 72 20 64 72 61 67 73 20 | the use|r drags |
|00003e30| 61 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |a collec|tion of |
|00003e40| 69 74 65 6d 73 20 6f 6e | 20 74 68 65 20 73 63 72 |items on| the scr|
|00003e50| 65 65 6e 2c 20 61 73 20 | 74 68 65 20 6d 6f 75 73 |een, as |the mous|
|00003e60| 65 20 70 61 73 73 65 73 | 20 74 68 72 6f 75 67 68 |e passes| through|
|00003e70| 20 6f 6e 65 20 6f 66 20 | 79 6f 75 72 20 61 70 70 | one of |your app|
|00003e80| 6c 69 63 61 74 69 6f 6e | d5 73 20 77 69 6e 64 6f |lication|.s windo|
|00003e90| 77 73 2c 20 74 68 65 20 | 44 72 61 67 20 4d 61 6e |ws, the |Drag Man|
|00003ea0| 61 67 65 72 20 63 61 6c | 6c 73 20 79 6f 75 72 20 |ager cal|ls your |
|00003eb0| 44 72 61 67 54 72 61 63 | 6b 69 6e 67 48 61 6e 64 |DragTrac|kingHand|
|00003ec0| 6c 65 72 20 74 6f 20 61 | 6c 6c 6f 77 20 79 6f 75 |ler to a|llow you|
|00003ed0| 20 74 6f 20 74 72 61 63 | 6b 20 74 68 65 20 64 72 | to trac|k the dr|
|00003ee0| 61 67 20 74 68 72 6f 75 | 67 68 20 79 6f 75 72 20 |ag throu|gh your |
|00003ef0| 77 69 6e 64 6f 77 73 2e | 0d 54 68 65 20 44 72 61 |windows.|.The Dra|
|00003f00| 67 20 4d 61 6e 61 67 65 | 72 20 73 65 6e 64 73 20 |g Manage|r sends |
|00003f10| 79 6f 75 72 20 44 72 61 | 67 54 72 61 63 6b 69 6e |your Dra|gTrackin|
|00003f20| 67 48 61 6e 64 6c 65 72 | 20 74 72 61 63 6b 69 6e |gHandler| trackin|
|00003f30| 67 20 73 74 61 74 75 73 | 20 6d 65 73 73 61 67 65 |g status| message|
|00003f40| 73 20 61 73 20 74 68 65 | 20 75 73 65 72 20 6d 6f |s as the| user mo|
|00003f50| 76 65 73 20 74 68 65 20 | 6d 6f 75 73 65 2e 20 20 |ves the |mouse. |
|00003f60| 59 6f 75 72 20 44 72 61 | 67 54 72 61 63 6b 69 6e |Your Dra|gTrackin|
|00003f70| 67 48 61 6e 64 6c 65 72 | 20 72 65 63 65 69 76 65 |gHandler| receive|
|00003f80| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|00003f90| 6d 65 73 73 61 67 65 73 | 20 66 72 6f 6d 20 74 68 |messages| from th|
|00003fa0| 65 20 44 72 61 67 20 4d | 61 6e 61 67 65 72 3a 0d |e Drag M|anager:.|
|00003fb0| 09 6e 09 61 6e 20 65 6e | 74 65 72 20 68 61 6e 64 |.n.an en|ter hand|
|00003fc0| 6c 65 72 20 6d 65 73 73 | 61 67 65 20 77 68 65 6e |ler mess|age when|
|00003fd0| 20 74 68 65 20 66 6f 63 | 75 73 20 6f 66 20 61 20 | the foc|us of a |
|00003fe0| 64 72 61 67 20 65 6e 74 | 65 72 73 20 61 20 77 69 |drag ent|ers a wi|
|00003ff0| 6e 64 6f 77 20 74 68 61 | 74 20 69 73 20 68 61 6e |ndow tha|t is han|
|00004000| 64 6c 65 64 20 62 79 20 | 79 6f 75 72 20 44 72 61 |dled by |your Dra|
|00004010| 67 54 72 61 63 6b 69 6e | 67 48 61 6e 64 6c 65 72 |gTrackin|gHandler|
|00004020| 20 66 72 6f 6d 20 61 6e | 79 20 77 69 6e 64 6f 77 | from an|y window|
|00004030| 20 74 68 61 74 20 69 73 | 20 6e 6f 74 20 68 61 6e | that is| not han|
|00004040| 64 6c 65 64 20 62 79 20 | 74 68 65 20 73 61 6d 65 |dled by |the same|
|00004050| 20 44 72 61 67 54 72 61 | 63 6b 69 6e 67 48 61 6e | DragTra|ckingHan|
|00004060| 64 6c 65 72 0d 09 6e 09 | 61 6e 20 65 6e 74 65 72 |dler..n.|an enter|
|00004070| 20 77 69 6e 64 6f 77 20 | 6d 65 73 73 61 67 65 20 | window |message |
|00004080| 77 68 65 6e 20 74 68 65 | 20 66 6f 63 75 73 20 6f |when the| focus o|
|00004090| 66 20 61 20 64 72 61 67 | 20 65 6e 74 65 72 73 20 |f a drag| enters |
|000040a0| 61 6e 79 20 77 69 6e 64 | 6f 77 20 74 68 61 74 20 |any wind|ow that |
|000040b0| 69 73 20 68 61 6e 64 6c | 65 64 20 62 79 20 79 6f |is handl|ed by yo|
|000040c0| 75 72 20 44 72 61 67 54 | 72 61 63 6b 69 6e 67 48 |ur DragT|rackingH|
|000040d0| 61 6e 64 6c 65 72 0d 09 | 6e 09 61 6e 20 69 6e 20 |andler..|n.an in |
|000040e0| 77 69 6e 64 6f 77 20 6d | 65 73 73 61 67 65 20 61 |window m|essage a|
|000040f0| 73 20 74 68 65 20 75 73 | 65 72 20 64 72 61 67 73 |s the us|er drags|
|00004100| 20 77 69 74 68 69 6e 20 | 61 20 77 69 6e 64 6f 77 | within |a window|
|00004110| 20 68 61 6e 64 6c 65 64 | 20 62 79 20 79 6f 75 72 | handled| by your|
|00004120| 20 44 72 61 67 54 72 61 | 63 6b 69 6e 67 48 61 6e | DragTra|ckingHan|
|00004130| 64 6c 65 72 0d 09 6e 09 | 61 20 6c 65 61 76 65 20 |dler..n.|a leave |
|00004140| 77 69 6e 64 6f 77 20 6d | 65 73 73 61 67 65 20 77 |window m|essage w|
|00004150| 68 65 6e 20 74 68 65 20 | 66 6f 63 75 73 20 6f 66 |hen the |focus of|
|00004160| 20 61 20 64 72 61 67 20 | 6c 65 61 76 65 73 20 61 | a drag |leaves a|
|00004170| 6e 79 20 77 69 6e 64 6f | 77 20 74 68 61 74 20 69 |ny windo|w that i|
|00004180| 73 20 68 61 6e 64 6c 65 | 64 20 62 79 20 79 6f 75 |s handle|d by you|
|00004190| 72 20 44 72 61 67 54 72 | 61 63 6b 69 6e 67 48 61 |r DragTr|ackingHa|
|000041a0| 6e 64 6c 65 72 0d 09 6e | 09 61 20 6c 65 61 76 65 |ndler..n|.a leave|
|000041b0| 20 68 61 6e 64 6c 65 72 | 20 6d 65 73 73 61 67 65 | handler| message|
|000041c0| 20 77 68 65 6e 20 74 68 | 65 20 66 6f 63 75 73 20 | when th|e focus |
|000041d0| 6f 66 20 61 20 64 72 61 | 67 20 65 6e 74 65 72 73 |of a dra|g enters|
|000041e0| 20 61 20 77 69 6e 64 6f | 77 20 74 68 61 74 20 69 | a windo|w that i|
|000041f0| 73 20 6e 6f 74 20 68 61 | 6e 64 6c 65 64 20 62 79 |s not ha|ndled by|
|00004200| 20 79 6f 75 72 20 44 72 | 61 67 54 72 61 63 6b 69 | your Dr|agTracki|
|00004210| 6e 67 48 61 6e 64 6c 65 | 72 0d 57 68 65 6e 20 79 |ngHandle|r.When y|
|00004220| 6f 75 20 72 65 63 65 69 | 76 65 20 61 6e 79 20 6f |ou recei|ve any o|
|00004230| 66 20 74 68 65 73 65 20 | 6d 65 73 73 61 67 65 73 |f these |messages|
|00004240| 20 66 72 6f 6d 20 74 68 | 65 20 44 72 61 67 20 4d | from th|e Drag M|
|00004250| 61 6e 61 67 65 72 2c 20 | 79 6f 75 20 63 61 6e 20 |anager, |you can |
|00004260| 75 73 65 20 73 65 76 65 | 72 61 6c 20 72 6f 75 74 |use seve|ral rout|
|00004270| 69 6e 65 73 20 70 72 6f | 76 69 64 65 64 20 62 79 |ines pro|vided by|
|00004280| 20 74 68 65 20 44 72 61 | 67 20 4d 61 6e 61 67 65 | the Dra|g Manage|
|00004290| 72 20 74 68 61 74 20 61 | 6c 6c 6f 77 20 79 6f 75 |r that a|llow you|
|000042a0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |r applic|ation to|
|000042b0| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 61 74 20 | determi|ne what |
|000042c0| 69 73 20 62 65 69 6e 67 | 20 64 72 61 67 67 65 64 |is being| dragged|
|000042d0| 2e 20 20 54 68 69 73 20 | 69 6e 63 6c 75 64 65 73 |. This |includes|
|000042e0| 20 63 6f 75 6e 74 69 6e | 67 20 74 68 65 20 6e 75 | countin|g the nu|
|000042f0| 6d 62 65 72 20 6f 66 20 | 64 72 61 67 20 69 74 65 |mber of |drag ite|
|00004300| 6d 73 2c 20 63 6f 75 6e | 74 69 6e 67 20 74 68 65 |ms, coun|ting the|
|00004310| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 6c 61 76 6f | number |of flavo|
|00004320| 72 73 20 69 6e 20 61 20 | 64 72 61 67 20 69 74 65 |rs in a |drag ite|
|00004330| 6d 20 61 6e 64 20 67 65 | 74 74 69 6e 67 20 74 68 |m and ge|tting th|
|00004340| 65 20 74 79 70 65 20 61 | 6e 64 20 66 6c 61 67 73 |e type a|nd flags|
|00004350| 20 66 6f 72 20 65 61 63 | 68 20 66 6c 61 76 6f 72 | for eac|h flavor|
|00004360| 20 69 6e 20 61 20 64 72 | 61 67 20 69 74 65 6d 2e | in a dr|ag item.|
|00004370| 20 20 55 73 69 6e 67 20 | 74 68 65 20 69 6e 66 6f | Using |the info|
|00004380| 72 6d 61 74 69 6f 6e 20 | 72 65 74 75 72 6e 65 64 |rmation |returned|
|00004390| 20 62 79 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 | by thes|e functi|
|000043a0| 6f 6e 73 2c 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |ons, you|r applic|
|000043b0| 61 74 69 6f 6e 20 63 61 | 6e 20 64 65 74 65 72 6d |ation ca|n determ|
|000043c0| 69 6e 65 20 69 66 20 61 | 20 70 6f 72 74 69 6f 6e |ine if a| portion|
|000043d0| 20 6f 66 20 61 20 77 69 | 6e 64 6f 77 20 73 68 6f | of a wi|ndow sho|
|000043e0| 75 6c 64 20 68 69 67 68 | 6c 69 67 68 74 20 77 68 |uld high|light wh|
|000043f0| 65 6e 20 74 68 65 20 75 | 73 65 72 20 64 72 61 67 |en the u|ser drag|
|00004400| 73 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 77 69 |s throug|h the wi|
|00004410| 6e 64 6f 77 2e 0d 54 68 | 65 20 69 6e 20 77 69 6e |ndow..Th|e in win|
|00004420| 64 6f 77 20 6d 65 73 73 | 61 67 65 20 69 73 20 77 |dow mess|age is w|
|00004430| 68 65 72 65 20 6d 6f 73 | 74 20 68 69 67 68 6c 69 |here mos|t highli|
|00004440| 67 68 74 69 6e 67 20 6f | 63 63 75 72 73 2e 20 20 |ghting o|ccurs. |
|00004450| 59 6f 75 20 63 61 6e 20 | 74 65 73 74 20 74 68 65 |You can |test the|
|00004460| 20 63 75 72 72 65 6e 74 | 20 70 6f 73 69 74 69 6f | current| positio|
|00004470| 6e 20 6f 66 20 74 68 65 | 20 6d 6f 75 73 65 20 61 |n of the| mouse a|
|00004480| 6e 64 20 68 69 67 68 6c | 69 67 68 74 20 64 69 66 |nd highl|ight dif|
|00004490| 66 65 72 65 6e 74 20 61 | 72 65 61 73 20 6f 66 20 |ferent a|reas of |
|000044a0| 79 6f 75 72 20 77 69 6e | 64 6f 77 20 61 63 63 6f |your win|dow acco|
|000044b0| 72 64 69 6e 67 6c 79 2e | 0d 54 68 65 20 65 6e 74 |rdingly.|.The ent|
|000044c0| 65 72 20 77 69 6e 64 6f | 77 20 61 6e 64 20 6c 65 |er windo|w and le|
|000044d0| 61 76 65 20 77 69 6e 64 | 6f 77 20 6d 65 73 73 61 |ave wind|ow messa|
|000044e0| 67 65 73 20 61 6c 77 61 | 79 73 20 6f 63 63 75 72 |ges alwa|ys occur|
|000044f0| 20 69 6e 20 70 61 69 72 | 73 2e 20 20 54 68 65 73 | in pair|s. Thes|
|00004500| 65 20 6d 65 73 73 61 67 | 65 73 20 61 72 65 20 75 |e messag|es are u|
|00004510| 73 65 66 75 6c 20 66 6f | 72 20 64 65 74 65 72 6d |seful fo|r determ|
|00004520| 69 6e 69 6e 67 20 74 68 | 65 20 70 6f 69 6e 74 20 |ining th|e point |
|00004530| 61 74 20 77 68 69 63 68 | 20 74 68 65 20 6d 6f 75 |at which| the mou|
|00004540| 73 65 20 65 6e 74 65 72 | 73 20 6f 72 20 6c 65 61 |se enter|s or lea|
|00004550| 76 65 73 20 61 20 77 69 | 6e 64 6f 77 2e 0d 54 68 |ves a wi|ndow..Th|
|00004560| 65 20 65 6e 74 65 72 20 | 68 61 6e 64 6c 65 72 20 |e enter |handler |
|00004570| 61 6e 64 20 6c 65 61 76 | 65 20 68 61 6e 64 6c 65 |and leav|e handle|
|00004580| 72 20 6d 65 73 73 61 67 | 65 73 20 61 6c 73 6f 20 |r messag|es also |
|00004590| 6f 63 63 75 72 20 69 6e | 20 70 61 69 72 73 2e 20 |occur in| pairs. |
|000045a0| 20 54 68 65 73 65 20 6d | 65 73 73 61 67 65 73 20 | These m|essages |
|000045b0| 6f 6e 6c 79 20 6f 63 63 | 75 72 20 77 68 65 6e 20 |only occ|ur when |
|000045c0| 74 68 65 20 64 72 61 67 | 20 6d 6f 76 65 73 20 62 |the drag| moves b|
|000045d0| 65 74 77 65 65 6e 20 77 | 69 6e 64 6f 77 73 20 74 |etween w|indows t|
|000045e0| 68 61 74 20 61 72 65 20 | 68 61 6e 64 6c 65 64 20 |hat are |handled |
|000045f0| 62 79 20 64 69 66 66 65 | 72 65 6e 74 20 68 61 6e |by diffe|rent han|
|00004600| 64 6c 65 72 20 72 6f 75 | 74 69 6e 65 73 2e 20 20 |dler rou|tines. |
|00004610| 54 68 65 73 65 20 6d 65 | 73 73 61 67 65 73 20 61 |These me|ssages a|
|00004620| 72 65 20 75 73 65 66 75 | 6c 20 66 6f 72 20 61 6c |re usefu|l for al|
|00004630| 6c 6f 63 61 74 69 6e 67 | 20 61 6e 64 20 72 65 6c |locating| and rel|
|00004640| 65 61 73 69 6e 67 20 6d | 65 6d 6f 72 79 20 74 68 |easing m|emory th|
|00004650| 61 74 20 79 6f 75 20 6d | 69 67 68 74 20 6e 65 65 |at you m|ight nee|
|00004660| 64 20 77 68 65 6e 20 74 | 72 61 63 6b 69 6e 67 20 |d when t|racking |
|00004670| 77 69 74 68 69 6e 20 61 | 20 73 65 74 20 6f 66 20 |within a| set of |
|00004680| 77 69 6e 64 6f 77 73 2e | 0d 46 69 67 75 72 65 20 |windows.|.Figure |
|00004690| 32 2d 35 20 73 68 6f 77 | 73 20 61 6e 20 65 78 61 |2-5 show|s an exa|
|000046a0| 6d 70 6c 65 20 6f 66 20 | 61 20 75 73 65 72 20 64 |mple of |a user d|
|000046b0| 72 61 67 67 69 6e 67 20 | 61 20 63 6c 69 70 70 69 |ragging |a clippi|
|000046c0| 6e 67 20 66 72 6f 6d 20 | 74 68 65 20 46 69 6e 64 |ng from |the Find|
|000046d0| 65 72 20 74 68 72 6f 75 | 67 68 20 74 77 6f 20 77 |er throu|gh two w|
|000046e0| 69 6e 64 6f 77 73 20 6f | 66 20 61 20 77 6f 72 64 |indows o|f a word|
|000046f0| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 61 70 70 6c | process|ing appl|
|00004700| 69 63 61 74 69 6f 6e 2e | 20 20 54 68 65 20 66 6f |ication.| The fo|
|00004710| 6c 6c 6f 77 69 6e 67 20 | 65 78 61 6d 70 6c 65 20 |llowing |example |
|00004720| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 77 68 61 |demonstr|ates wha|
|00004730| 74 20 74 72 61 63 6b 69 | 6e 67 20 6d 65 73 73 61 |t tracki|ng messa|
|00004740| 67 65 73 20 61 72 65 20 | 73 65 6e 74 20 74 6f 20 |ges are |sent to |
|00004750| 74 68 65 20 46 69 6e 64 | 65 72 20 61 6e 64 20 61 |the Find|er and a|
|00004760| 70 70 6c 69 63 61 74 69 | 6f 6e 20 64 75 72 69 6e |pplicati|on durin|
|00004770| 67 20 61 20 64 72 61 67 | 3a 0d 46 69 67 75 72 65 |g a drag|:.Figure|
|00004780| 20 32 2d 35 09 45 78 61 | 6d 70 6c 65 20 44 72 61 | 2-5.Exa|mple Dra|
|00004790| 67 20 54 72 61 63 6b 69 | 6e 67 20 50 61 74 68 20 |g Tracki|ng Path |
|000047a0| 54 68 72 6f 75 67 68 20 | 4d 75 6c 74 69 70 6c 65 |Through |Multiple|
|000047b0| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 6e | Applica|tions an|
|000047c0| 64 20 57 69 6e 64 6f 77 | 73 0d 31 2e 09 54 68 65 |d Window|s.1..The|
|000047d0| 20 75 73 65 72 20 63 6c | 69 63 6b 73 20 61 6e 64 | user cl|icks and|
|000047e0| 20 64 72 61 67 73 20 74 | 68 65 20 63 6c 69 70 70 | drags t|he clipp|
|000047f0| 69 6e 67 20 61 6e 64 20 | 74 68 65 20 46 69 6e 64 |ing and |the Find|
|00004800| 65 72 20 73 74 61 72 74 | 73 20 61 20 64 72 61 67 |er start|s a drag|
|00004810| 2e 20 20 54 68 65 20 46 | 69 6e 64 65 72 20 72 65 |. The F|inder re|
|00004820| 63 65 69 76 65 73 20 61 | 6e 20 65 6e 74 65 72 20 |ceives a|n enter |
|00004830| 68 61 6e 64 6c 65 72 20 | 6d 65 73 73 61 67 65 20 |handler |message |
|00004840| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 20 65 |followed| by an e|
|00004850| 6e 74 65 72 20 77 69 6e | 64 6f 77 20 6d 65 73 73 |nter win|dow mess|
|00004860| 61 67 65 2e 20 20 41 73 | 20 74 68 65 20 75 73 65 |age. As| the use|
|00004870| 72 20 64 72 61 67 73 20 | 77 69 74 68 69 6e 20 74 |r drags |within t|
|00004880| 68 65 20 46 69 6e 64 65 | 72 d5 73 20 d2 43 6c 69 |he Finde|r.s .Cli|
|00004890| 70 70 69 6e 67 73 d3 20 | 77 69 6e 64 6f 77 2c 20 |ppings. |window, |
|000048a0| 74 68 65 20 46 69 6e 64 | 65 72 20 72 65 63 65 69 |the Find|er recei|
|000048b0| 76 65 73 20 6d 75 6c 74 | 69 70 6c 65 20 69 6e 20 |ves mult|iple in |
|000048c0| 77 69 6e 64 6f 77 20 6d | 65 73 73 61 67 65 73 2e |window m|essages.|
|000048d0| 0d 32 2e 09 57 68 65 6e | 20 74 68 65 20 75 73 65 |.2..When| the use|
|000048e0| 72 20 64 72 61 67 73 20 | 69 6e 74 6f 20 74 68 65 |r drags |into the|
|000048f0| 20 77 6f 72 64 20 70 72 | 6f 63 65 73 73 6f 72 d5 | word pr|ocessor.|
|00004900| 73 20 d2 75 6e 74 69 74 | 6c 65 64 20 31 d3 20 77 |s .untit|led 1. w|
|00004910| 69 6e 64 6f 77 2c 20 74 | 68 65 20 46 69 6e 64 65 |indow, t|he Finde|
|00004920| 72 20 72 65 63 65 69 76 | 65 73 20 61 20 6c 65 61 |r receiv|es a lea|
|00004930| 76 65 20 77 69 6e 64 6f | 77 20 6d 65 73 73 61 67 |ve windo|w messag|
|00004940| 65 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 20 |e follow|ed by a |
|00004950| 6c 65 61 76 65 20 68 61 | 6e 64 6c 65 72 20 6d 65 |leave ha|ndler me|
|00004960| 73 73 61 67 65 2e 20 20 | 54 68 65 20 77 6f 72 64 |ssage. |The word|
|00004970| 20 70 72 6f 63 65 73 73 | 69 6e 67 20 61 70 70 6c | process|ing appl|
|00004980| 69 63 61 74 69 6f 6e 20 | 74 68 65 6e 20 72 65 63 |ication |then rec|
|00004990| 65 69 76 65 73 20 61 6e | 20 65 6e 74 65 72 20 68 |eives an| enter h|
|000049a0| 61 6e 64 6c 65 72 20 6d | 65 73 73 61 67 65 20 66 |andler m|essage f|
|000049b0| 6f 6c 6c 6f 77 65 64 20 | 62 79 20 61 6e 20 65 6e |ollowed |by an en|
|000049c0| 74 65 72 20 77 69 6e 64 | 6f 77 20 6d 65 73 73 61 |ter wind|ow messa|
|000049d0| 67 65 2e 20 20 57 68 69 | 6c 65 20 74 68 65 20 75 |ge. Whi|le the u|
|000049e0| 73 65 72 20 64 72 61 67 | 73 20 77 69 74 68 69 6e |ser drag|s within|
|000049f0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00004a00| d5 73 20 d2 75 6e 74 69 | 74 6c 65 64 20 31 d3 20 |.s .unti|tled 1. |
|00004a10| 77 69 6e 64 6f 77 2c 20 | 74 68 65 20 61 70 70 6c |window, |the appl|
|00004a20| 69 63 61 74 69 6f 6e 20 | 72 65 63 65 69 76 65 73 |ication |receives|
|00004a30| 20 69 6e 20 77 69 6e 64 | 6f 77 20 6d 65 73 73 61 | in wind|ow messa|
|00004a40| 67 65 73 2e 0d 33 2e 09 | 41 73 73 75 6d 69 6e 67 |ges..3..|Assuming|
|00004a50| 20 74 68 61 74 20 62 6f | 74 68 20 6f 66 20 74 68 | that bo|th of th|
|00004a60| 65 20 77 6f 72 64 20 70 | 72 6f 63 65 73 73 6f 72 |e word p|rocessor|
|00004a70| d5 73 20 77 69 6e 64 6f | 77 73 20 61 72 65 20 68 |.s windo|ws are h|
|00004a80| 61 6e 64 6c 65 64 20 62 | 79 20 74 68 65 20 73 61 |andled b|y the sa|
|00004a90| 6d 65 20 44 72 61 67 54 | 72 61 63 6b 69 6e 67 48 |me DragT|rackingH|
|00004aa0| 61 6e 64 6c 65 72 2c 20 | 77 68 65 6e 20 74 68 65 |andler, |when the|
|00004ab0| 20 75 73 65 72 20 64 72 | 61 67 73 20 69 6e 74 6f | user dr|ags into|
|00004ac0| 20 74 68 65 20 d2 53 61 | 6d 70 6c 65 20 54 65 78 | the .Sa|mple Tex|
|00004ad0| 74 d3 20 77 69 6e 64 6f | 77 2c 20 74 68 65 20 77 |t. windo|w, the w|
|00004ae0| 6f 72 64 20 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |ord proc|essing a|
|00004af0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 72 65 63 65 69 |pplicati|on recei|
|00004b00| 76 65 73 20 61 20 6c 65 | 61 76 65 20 77 69 6e 64 |ves a le|ave wind|
|00004b10| 6f 77 20 6d 65 73 73 61 | 67 65 20 66 6f 6c 6c 6f |ow messa|ge follo|
|00004b20| 77 65 64 20 62 79 20 61 | 6e 20 65 6e 74 65 72 20 |wed by a|n enter |
|00004b30| 77 69 6e 64 6f 77 20 6d | 65 73 73 61 67 65 2e 20 |window m|essage. |
|00004b40| 20 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 72 65 63 | It does| not rec|
|00004b50| 65 69 76 65 20 61 6e 79 | 20 65 6e 74 65 72 2f 6c |eive any| enter/l|
|00004b60| 65 61 76 65 20 68 61 6e | 64 6c 65 72 20 6d 65 73 |eave han|dler mes|
|00004b70| 73 61 67 65 73 20 73 69 | 6e 63 65 20 74 68 65 20 |sages si|nce the |
|00004b80| 73 61 6d 65 20 68 61 6e | 64 6c 65 72 20 72 6f 75 |same han|dler rou|
|00004b90| 74 69 6e 65 20 69 73 20 | 75 73 65 64 20 66 6f 72 |tine is |used for|
|00004ba0| 20 62 6f 74 68 20 77 69 | 6e 64 6f 77 73 2e 20 20 | both wi|ndows. |
|00004bb0| 41 73 20 74 68 65 20 75 | 73 65 72 20 64 72 61 67 |As the u|ser drag|
|00004bc0| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 61 70 70 |s within| the app|
|00004bd0| 6c 69 63 61 74 69 6f 6e | d5 73 20 d2 53 61 6d 70 |lication|.s .Samp|
|00004be0| 6c 65 20 54 65 78 74 d3 | 20 77 69 6e 64 6f 77 2c |le Text.| window,|
|00004bf0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00004c00| 20 72 65 63 65 69 76 65 | 73 20 69 6e 20 77 69 6e | receive|s in win|
|00004c10| 64 6f 77 20 6d 65 73 73 | 61 67 65 73 2e 0d 34 2e |dow mess|ages..4.|
|00004c20| 09 57 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 72 |.When th|e user r|
|00004c30| 65 6c 65 61 73 65 73 20 | 74 68 65 20 6d 6f 75 73 |eleases |the mous|
|00004c40| 65 20 62 75 74 74 6f 6e | 2c 20 74 68 65 20 64 61 |e button|, the da|
|00004c50| 74 61 20 74 72 61 6e 73 | 61 63 74 69 6f 6e 20 6f |ta trans|action o|
|00004c60| 63 63 75 72 73 20 62 79 | 20 63 61 6c 6c 69 6e 67 |ccurs by| calling|
|00004c70| 20 74 68 65 20 77 6f 72 | 64 20 70 72 6f 63 65 73 | the wor|d proces|
|00004c80| 73 69 6e 67 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |sing app|lication|
|00004c90| d5 73 20 72 65 63 65 69 | 76 65 20 64 72 6f 70 20 |.s recei|ve drop |
|00004ca0| 68 61 6e 64 6c 65 72 20 | 72 6f 75 74 69 6e 65 2e |handler |routine.|
|00004cb0| 20 20 46 6f 6c 6c 6f 77 | 69 6e 67 20 74 68 65 20 | Follow|ing the |
|00004cc0| 64 61 74 61 20 74 72 61 | 6e 73 61 63 74 69 6f 6e |data tra|nsaction|
|00004cd0| 2c 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |, the ap|plicatio|
|00004ce0| 6e 20 72 65 63 65 69 76 | 65 73 20 61 20 6c 65 61 |n receiv|es a lea|
|00004cf0| 76 65 20 77 69 6e 64 6f | 77 20 6d 65 73 73 61 67 |ve windo|w messag|
|00004d00| 65 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 20 |e follow|ed by a |
|00004d10| 6c 65 61 76 65 20 68 61 | 6e 64 6c 65 72 20 6d 65 |leave ha|ndler me|
|00004d20| 73 73 61 67 65 2e 20 20 | 54 68 65 20 64 72 61 67 |ssage. |The drag|
|00004d30| 20 69 73 20 6e 6f 77 20 | 63 6f 6d 70 6c 65 74 65 | is now |complete|
|00004d40| 20 61 6e 64 20 62 6f 74 | 68 20 74 68 65 20 46 69 | and bot|h the Fi|
|00004d50| 6e 64 65 72 d5 73 20 61 | 6e 64 20 77 6f 72 64 20 |nder.s a|nd word |
|00004d60| 70 72 6f 63 65 73 73 6f | 72 d5 73 20 65 76 65 6e |processo|r.s even|
|00004d70| 74 20 6c 6f 6f 70 73 20 | 63 6f 6e 74 69 6e 75 65 |t loops |continue|
|00004d80| 20 61 73 20 74 68 65 79 | 20 64 69 64 20 62 65 66 | as they| did bef|
|00004d90| 6f 72 65 20 74 68 65 20 | 64 72 61 67 20 61 6e 64 |ore the |drag and|
|00004da0| 20 64 72 6f 70 20 61 63 | 74 69 6f 6e 2e 0d 52 65 | drop ac|tion..Re|
|00004db0| 63 65 69 76 69 6e 67 20 | 44 61 74 61 0d 57 68 65 |ceiving |Data.Whe|
|00004dc0| 6e 20 74 68 65 20 75 73 | 65 72 20 64 72 6f 70 73 |n the us|er drops|
|00004dd0| 20 61 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 | a colle|ction of|
|00004de0| 20 69 74 65 6d 73 20 69 | 6e 20 6f 6e 65 20 6f 66 | items i|n one of|
|00004df0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00004e00| 6e d5 73 20 77 69 6e 64 | 6f 77 73 2c 20 74 68 65 |n.s wind|ows, the|
|00004e10| 20 44 72 61 67 20 4d 61 | 6e 61 67 65 72 20 63 61 | Drag Ma|nager ca|
|00004e20| 6c 6c 73 20 61 6e 79 20 | 44 72 61 67 52 65 63 65 |lls any |DragRece|
|00004e30| 69 76 65 48 61 6e 64 6c | 65 72 20 72 6f 75 74 69 |iveHandl|er routi|
|00004e40| 6e 65 73 20 74 68 61 74 | 20 61 72 65 20 69 6e 73 |nes that| are ins|
|00004e50| 74 61 6c 6c 65 64 20 6f | 6e 20 74 68 65 20 64 65 |talled o|n the de|
|00004e60| 73 74 69 6e 61 74 69 6f | 6e 20 77 69 6e 64 6f 77 |stinatio|n window|
|00004e70| 2e 20 20 54 68 69 73 20 | 63 61 6c 6c 20 61 6c 6c |. This |call all|
|00004e80| 6f 77 73 20 79 6f 75 20 | 74 6f 20 72 65 71 75 65 |ows you |to reque|
|00004e90| 73 74 20 74 68 65 20 64 | 72 61 67 20 69 74 65 6d |st the d|rag item|
|00004ea0| 20 66 6c 61 76 6f 72 73 | 20 74 68 61 74 20 79 6f | flavors| that yo|
|00004eb0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |ur appli|cation w|
|00004ec0| 69 73 68 65 73 20 74 6f | 20 61 63 63 65 70 74 2e |ishes to| accept.|
|00004ed0| 0d 59 6f 75 72 20 44 72 | 61 67 52 65 63 65 69 76 |.Your Dr|agReceiv|
|00004ee0| 65 48 61 6e 64 6c 65 72 | 20 63 61 6e 20 69 6e 73 |eHandler| can ins|
|00004ef0| 70 65 63 74 20 74 68 65 | 20 61 76 61 69 6c 61 62 |pect the| availab|
|00004f00| 6c 65 20 66 6c 61 76 6f | 72 73 20 62 79 20 75 73 |le flavo|rs by us|
|00004f10| 69 6e 67 20 74 68 65 20 | 43 6f 75 6e 74 44 72 61 |ing the |CountDra|
|00004f20| 67 49 74 65 6d 73 2c 20 | 47 65 74 44 72 61 67 49 |gItems, |GetDragI|
|00004f30| 74 65 6d 52 65 66 65 72 | 65 6e 63 65 4e 75 6d 62 |temRefer|enceNumb|
|00004f40| 65 72 2c 20 43 6f 75 6e | 74 44 72 61 67 49 74 65 |er, Coun|tDragIte|
|00004f50| 6d 46 6c 61 76 6f 72 73 | 2c 20 47 65 74 46 6c 61 |mFlavors|, GetFla|
|00004f60| 76 6f 72 54 79 70 65 20 | 61 6e 64 20 47 65 74 46 |vorType |and GetF|
|00004f70| 6c 61 76 6f 72 46 6c 61 | 67 73 20 66 75 6e 63 74 |lavorFla|gs funct|
|00004f80| 69 6f 6e 73 2e 0d 54 68 | 65 20 44 72 61 67 52 65 |ions..Th|e DragRe|
|00004f90| 63 65 69 76 65 48 61 6e | 64 6c 65 72 20 6d 61 79 |ceiveHan|dler may|
|00004fa0| 20 72 65 63 65 69 76 65 | 20 64 61 74 61 20 66 72 | receive| data fr|
|00004fb0| 6f 6d 20 74 68 65 20 73 | 65 6e 64 65 72 20 6f 66 |om the s|ender of|
|00004fc0| 20 74 68 65 20 64 72 61 | 67 20 62 79 20 63 61 6c | the dra|g by cal|
|00004fd0| 6c 69 6e 67 20 74 68 65 | 20 47 65 74 46 6c 61 76 |ling the| GetFlav|
|00004fe0| 6f 72 44 61 74 61 20 66 | 75 6e 63 74 69 6f 6e 2e |orData f|unction.|
|00004ff0| 0d 44 72 61 67 20 50 72 | 6f 63 65 64 75 72 65 73 |.Drag Pr|ocedures|
|00005000| 0d 49 6e 20 61 64 64 69 | 74 69 6f 6e 20 74 6f 20 |.In addi|tion to |
|00005010| 69 6e 73 74 61 6c 6c 69 | 6e 67 20 64 72 61 67 20 |installi|ng drag |
|00005020| 68 61 6e 64 6c 65 72 20 | 72 6f 75 74 69 6e 65 73 |handler |routines|
|00005030| 20 6f 6e 20 77 69 6e 64 | 6f 77 73 20 66 6f 72 20 | on wind|ows for |
|00005040| 61 20 64 72 61 67 2c 20 | 79 6f 75 20 63 61 6e 20 |a drag, |you can |
|00005050| 73 75 70 70 6c 79 20 74 | 68 65 20 44 72 61 67 20 |supply t|he Drag |
|00005060| 4d 61 6e 61 67 65 72 20 | 77 69 74 68 20 73 65 76 |Manager |with sev|
|00005070| 65 72 61 6c 20 64 69 66 | 66 65 72 65 6e 74 20 6b |eral dif|ferent k|
|00005080| 69 6e 64 73 20 6f 66 20 | 64 72 61 67 20 70 72 6f |inds of |drag pro|
|00005090| 63 65 64 75 72 65 73 2e | 20 20 44 72 61 67 20 70 |cedures.| Drag p|
|000050a0| 72 6f 63 65 64 75 72 65 | 73 20 61 72 65 20 75 73 |rocedure|s are us|
|000050b0| 65 64 20 62 79 20 74 68 | 65 20 44 72 61 67 20 4d |ed by th|e Drag M|
|000050c0| 61 6e 61 67 65 72 20 64 | 75 72 69 6e 67 20 61 20 |anager d|uring a |
|000050d0| 64 72 61 67 20 72 65 67 | 61 72 64 6c 65 73 73 20 |drag reg|ardless |
|000050e0| 6f 66 20 77 68 69 63 68 | 20 77 69 6e 64 6f 77 20 |of which| window |
|000050f0| 74 68 65 20 75 73 65 72 | 20 6d 61 79 20 62 65 20 |the user| may be |
|00005100| 64 72 61 67 67 69 6e 67 | 20 6f 76 65 72 2e 20 20 |dragging| over. |
|00005110| 59 6f 75 20 64 6f 20 6e | 6f 74 20 6e 65 65 64 20 |You do n|ot need |
|00005120| 74 6f 20 70 72 6f 76 69 | 64 65 20 74 68 65 20 44 |to provi|de the D|
|00005130| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 77 69 74 68 |rag Mana|ger with|
|00005140| 20 64 72 61 67 20 70 72 | 6f 63 65 64 75 72 65 73 | drag pr|ocedures|
|00005150| 20 75 6e 6c 65 73 73 20 | 79 6f 75 20 77 69 73 68 | unless |you wish|
|00005160| 20 74 6f 20 6f 76 65 72 | 72 69 64 65 20 74 68 65 | to over|ride the|
|00005170| 20 64 65 66 61 75 6c 74 | 20 62 65 68 61 76 69 6f | default| behavio|
|00005180| 72 2e 20 20 4f 6e 6c 79 | 20 74 68 65 20 73 65 6e |r. Only| the sen|
|00005190| 64 65 72 20 6f 66 20 61 | 20 64 72 61 67 20 63 61 |der of a| drag ca|
|000051a0| 6e 20 73 70 65 63 69 66 | 79 20 64 72 61 67 20 70 |n specif|y drag p|
|000051b0| 72 6f 63 65 64 75 72 65 | 73 20 74 6f 20 62 65 20 |rocedure|s to be |
|000051c0| 75 73 65 64 20 64 75 72 | 69 6e 67 20 61 20 64 72 |used dur|ing a dr|
|000051d0| 61 67 2e 20 20 54 68 65 | 20 44 72 61 67 20 4d 61 |ag. The| Drag Ma|
|000051e0| 6e 61 67 65 72 20 61 6c | 6c 6f 77 73 20 79 6f 75 |nager al|lows you|
|000051f0| 20 74 6f 20 69 6e 73 74 | 61 6c 6c 20 74 68 65 20 | to inst|all the |
|00005200| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 72 61 67 20 70 |followin|g drag p|
|00005210| 72 6f 63 65 64 75 72 65 | 73 20 69 6e 20 61 20 67 |rocedure|s in a g|
|00005220| 69 76 65 6e 20 64 72 61 | 67 3a 0d 09 6e 09 61 20 |iven dra|g:..n.a |
|00005230| 73 65 6e 64 20 64 61 74 | 61 20 70 72 6f 63 65 64 |send dat|a proced|
|00005240| 75 72 65 20 74 68 61 74 | 20 74 68 65 20 44 72 61 |ure that| the Dra|
|00005250| 67 20 4d 61 6e 61 67 65 | 72 20 63 61 6c 6c 73 20 |g Manage|r calls |
|00005260| 77 68 65 6e 20 74 68 65 | 20 72 65 63 65 69 76 65 |when the| receive|
|00005270| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 72 65 |r applic|ation re|
|00005280| 71 75 65 73 74 73 20 61 | 20 64 72 61 67 20 69 74 |quests a| drag it|
|00005290| 65 6d 20 66 6c 61 76 6f | 72 20 74 68 61 74 20 74 |em flavo|r that t|
|000052a0| 68 65 20 44 72 61 67 20 | 4d 61 6e 61 67 65 72 20 |he Drag |Manager |
|000052b0| 64 6f 65 73 20 6e 6f 74 | 20 63 75 72 72 65 6e 74 |does not| current|
|000052c0| 6c 79 20 68 61 76 65 20 | 74 68 65 20 64 61 74 61 |ly have |the data|
|000052d0| 20 63 61 63 68 65 64 20 | 66 6f 72 0d 09 6e 09 61 | cached |for..n.a|
|000052e0| 20 64 72 61 67 20 69 6e | 70 75 74 20 70 72 6f 63 | drag in|put proc|
|000052f0| 65 64 75 72 65 20 74 68 | 61 74 20 74 68 65 20 44 |edure th|at the D|
|00005300| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |rag Mana|ger call|
|00005310| 73 20 77 68 65 6e 20 73 | 61 6d 70 6c 69 6e 67 20 |s when s|ampling |
|00005320| 74 68 65 20 6d 6f 75 73 | 65 20 70 6f 73 69 74 69 |the mous|e positi|
|00005330| 6f 6e 20 61 6e 64 20 6b | 65 79 62 6f 61 72 64 20 |on and k|eyboard |
|00005340| 73 74 61 74 65 20 74 6f | 20 61 6c 6c 6f 77 20 74 |state to| allow t|
|00005350| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |he appli|cation p|
|00005360| 72 6f 67 72 61 6d 20 74 | 6f 20 6f 76 65 72 72 69 |rogram t|o overri|
|00005370| 64 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |de the c|urrent s|
|00005380| 74 61 74 65 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |tate of |the inpu|
|00005390| 74 20 64 65 76 69 63 65 | 73 0d 09 6e 09 61 20 64 |t device|s..n.a d|
|000053a0| 72 61 67 20 64 72 61 77 | 69 6e 67 20 70 72 6f 63 |rag draw|ing proc|
|000053b0| 65 64 75 72 65 20 74 68 | 61 74 20 74 68 65 20 44 |edure th|at the D|
|000053c0| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |rag Mana|ger call|
|000053d0| 73 20 74 6f 20 61 6c 6c | 6f 77 20 79 6f 75 72 20 |s to all|ow your |
|000053e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 61 |applicat|ion to a|
|000053f0| 73 73 75 6d 65 20 72 65 | 73 70 6f 6e 73 69 62 69 |ssume re|sponsibi|
|00005400| 6c 69 74 79 20 66 6f 72 | 20 64 72 61 77 69 6e 67 |lity for| drawing|
|00005410| 20 74 68 65 20 64 72 61 | 67 20 72 65 67 69 6f 6e | the dra|g region|
|00005420| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 0d 53 | on the |screen.S|
|00005430| 65 6e 64 69 6e 67 20 44 | 61 74 61 0d 54 68 65 20 |ending D|ata.The |
|00005440| 44 72 61 67 20 4d 61 6e | 61 67 65 72 20 63 61 63 |Drag Man|ager cac|
|00005450| 68 65 73 20 74 68 65 20 | 66 6c 61 76 6f 72 20 64 |hes the |flavor d|
|00005460| 61 74 61 20 66 6f 72 20 | 61 6e 79 20 66 6c 61 76 |ata for |any flav|
|00005470| 6f 72 73 20 74 68 61 74 | 20 77 65 72 65 20 61 64 |ors that| were ad|
|00005480| 64 65 64 20 74 6f 20 61 | 20 64 72 61 67 20 77 69 |ded to a| drag wi|
|00005490| 74 68 20 74 68 65 20 41 | 64 64 44 72 61 67 49 74 |th the A|ddDragIt|
|000054a0| 65 6d 46 6c 61 76 6f 72 | 20 66 75 6e 63 74 69 6f |emFlavor| functio|
|000054b0| 6e 2e 20 20 49 66 20 61 | 20 72 65 63 65 69 76 65 |n. If a| receive|
|000054c0| 72 20 63 61 6c 6c 73 20 | 74 68 65 20 47 65 74 46 |r calls |the GetF|
|000054d0| 6c 61 76 6f 72 44 61 74 | 61 20 66 75 6e 63 74 69 |lavorDat|a functi|
|000054e0| 6f 6e 20 74 6f 20 67 65 | 74 20 61 20 66 6c 61 76 |on to ge|t a flav|
|000054f0| 6f 72 d5 73 20 64 61 74 | 61 2c 20 74 68 65 20 44 |or.s dat|a, the D|
|00005500| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 73 69 6d 70 |rag Mana|ger simp|
|00005510| 6c 79 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 63 |ly retur|ns the c|
|00005520| 61 63 68 65 64 20 64 61 | 74 61 20 74 6f 20 74 68 |ached da|ta to th|
|00005530| 65 20 63 61 6c 6c 65 72 | 2e 0d 49 66 20 79 6f 75 |e caller|..If you|
|00005540| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 70 61 |r applic|ation pa|
|00005550| 73 73 65 73 20 4e 49 4c | 20 61 73 20 74 68 65 20 |sses NIL| as the |
|00005560| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 66 |pointer |to the f|
|00005570| 6c 61 76 6f 72 20 64 61 | 74 61 20 77 68 65 6e 20 |lavor da|ta when |
|00005580| 61 64 64 69 6e 67 20 61 | 20 6e 65 77 20 66 6c 61 |adding a| new fla|
|00005590| 76 6f 72 20 77 69 74 68 | 20 74 68 65 20 41 64 64 |vor with| the Add|
|000055a0| 44 72 61 67 49 74 65 6d | 46 6c 61 76 6f 72 20 66 |DragItem|Flavor f|
|000055b0| 75 6e 63 74 69 6f 6e 2c | 20 74 68 65 20 44 72 61 |unction,| the Dra|
|000055c0| 67 20 4d 61 6e 61 67 65 | 72 20 64 6f 65 73 20 6e |g Manage|r does n|
|000055d0| 6f 74 20 63 61 63 68 65 | 20 61 6e 79 20 64 61 74 |ot cache| any dat|
|000055e0| 61 20 69 6e 20 74 68 65 | 20 6e 65 77 20 66 6c 61 |a in the| new fla|
|000055f0| 76 6f 72 2e 20 20 49 6e | 20 74 68 69 73 20 63 61 |vor. In| this ca|
|00005600| 73 65 2c 20 77 68 65 6e | 20 61 20 72 65 63 65 69 |se, when| a recei|
|00005610| 76 65 72 20 72 65 71 75 | 65 73 74 73 20 74 68 65 |ver requ|ests the|
|00005620| 20 64 61 74 61 20 62 79 | 20 63 61 6c 6c 69 6e 67 | data by| calling|
|00005630| 20 47 65 74 46 6c 61 76 | 6f 72 44 61 74 61 2c 20 | GetFlav|orData, |
|00005640| 74 68 65 20 44 72 61 67 | 20 4d 61 6e 61 67 65 72 |the Drag| Manager|
|00005650| 20 77 69 6c 6c 20 63 61 | 6c 6c 20 74 68 65 20 64 | will ca|ll the d|
|00005660| 72 61 67 d5 73 20 73 65 | 6e 64 20 64 61 74 61 20 |rag.s se|nd data |
|00005670| 70 72 6f 63 65 64 75 72 | 65 20 74 6f 20 67 65 74 |procedur|e to get|
|00005680| 20 74 68 65 20 64 61 74 | 61 20 66 72 6f 6d 20 74 | the dat|a from t|
|00005690| 68 65 20 73 65 6e 64 65 | 72 2e 0d 54 68 69 73 20 |he sende|r..This |
|000056a0| 6d 65 63 68 61 6e 69 73 | 6d 20 61 6c 6c 6f 77 73 |mechanis|m allows|
|000056b0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|000056c0| 6e 20 74 6f 20 61 64 64 | 20 61 6c 6c 20 6f 66 20 |n to add| all of |
|000056d0| 74 68 65 20 76 61 72 69 | 6f 75 73 20 64 72 61 67 |the vari|ous drag|
|000056e0| 20 69 74 65 6d 20 66 6c | 61 76 6f 72 20 74 79 70 | item fl|avor typ|
|000056f0| 65 73 20 74 68 61 74 20 | 63 6f 75 6c 64 20 62 65 |es that |could be|
|00005700| 20 70 72 6f 76 69 64 65 | 64 20 74 6f 20 61 20 72 | provide|d to a r|
|00005710| 65 63 65 69 76 65 72 20 | 75 70 6f 6e 20 72 65 71 |eceiver |upon req|
|00005720| 75 65 73 74 2c 20 62 75 | 74 20 64 6f 65 73 6e 27 |uest, bu|t doesn'|
|00005730| 74 20 72 65 71 75 69 72 | 65 20 74 68 65 20 73 65 |t requir|e the se|
|00005740| 6e 64 65 72 20 74 6f 20 | 73 70 65 6e 64 20 74 68 |nder to |spend th|
|00005750| 65 20 74 69 6d 65 20 61 | 6e 64 20 6d 65 6d 6f 72 |e time a|nd memor|
|00005760| 79 20 72 65 71 75 69 72 | 65 64 20 74 6f 20 67 65 |y requir|ed to ge|
|00005770| 6e 65 72 61 74 65 20 74 | 68 65 20 64 61 74 61 2e |nerate t|he data.|
|00005780| 20 20 54 68 69 73 20 69 | 73 20 75 73 75 61 6c 6c | This i|s usuall|
|00005790| 79 20 61 20 63 6f 6e 73 | 69 64 65 72 61 74 69 6f |y a cons|ideratio|
|000057a0| 6e 20 77 68 65 6e 20 74 | 68 65 20 73 65 6e 64 65 |n when t|he sende|
|000057b0| 72 20 6d 75 73 74 20 70 | 65 72 66 6f 72 6d 20 65 |r must p|erform e|
|000057c0| 78 70 65 6e 73 69 76 65 | 20 63 6f 6d 70 75 74 61 |xpensive| computa|
|000057d0| 74 69 6f 6e 73 20 74 6f | 20 70 72 6f 64 75 63 65 |tions to| produce|
|000057e0| 20 74 68 65 20 64 61 74 | 61 20 6f 72 20 69 66 20 | the dat|a or if |
|000057f0| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 64 61 |the resu|lting da|
|00005800| 74 61 20 72 65 71 75 69 | 72 65 73 20 61 20 67 72 |ta requi|res a gr|
|00005810| 65 61 74 20 64 65 61 6c | 20 6f 66 20 6d 65 6d 6f |eat deal| of memo|
|00005820| 72 79 20 74 6f 20 73 74 | 6f 72 65 2e 0d 41 20 64 |ry to st|ore..A d|
|00005830| 72 61 67 20 73 65 6e 64 | 20 64 61 74 61 20 70 72 |rag send| data pr|
|00005840| 6f 63 65 64 75 72 65 20 | 69 73 20 6f 6e 6c 79 20 |ocedure |is only |
|00005850| 72 65 71 75 69 72 65 64 | 20 77 68 65 6e 20 6f 6e |required| when on|
|00005860| 65 20 6f 72 20 6d 6f 72 | 65 20 66 6c 61 76 6f 72 |e or mor|e flavor|
|00005870| 73 20 77 65 72 65 20 61 | 64 64 65 64 20 74 6f 20 |s were a|dded to |
|00005880| 61 20 64 72 61 67 20 77 | 69 74 68 6f 75 74 20 73 |a drag w|ithout s|
|00005890| 70 65 63 69 66 79 69 6e | 67 20 61 20 70 6f 69 6e |pecifyin|g a poin|
|000058a0| 74 65 72 20 74 6f 20 74 | 68 65 20 66 6c 61 76 6f |ter to t|he flavo|
|000058b0| 72 20 64 61 74 61 20 77 | 68 65 6e 20 63 61 6c 6c |r data w|hen call|
|000058c0| 69 6e 67 20 74 68 65 20 | 41 64 64 44 72 61 67 49 |ing the |AddDragI|
|000058d0| 74 65 6d 46 6c 61 76 6f | 72 20 66 75 6e 63 74 69 |temFlavo|r functi|
|000058e0| 6f 6e 2e 0d 4f 76 65 72 | 72 69 64 69 6e 67 20 53 |on..Over|riding S|
|000058f0| 74 61 6e 64 61 72 64 20 | 49 6e 70 75 74 0d 54 68 |tandard |Input.Th|
|00005900| 65 20 44 72 61 67 20 4d | 61 6e 61 67 65 72 20 61 |e Drag M|anager a|
|00005910| 6c 6c 6f 77 73 20 79 6f | 75 72 20 61 70 70 6c 69 |llows yo|ur appli|
|00005920| 63 61 74 69 6f 6e 20 74 | 6f 20 70 72 6f 76 69 64 |cation t|o provid|
|00005930| 65 20 61 20 64 72 61 67 | 20 69 6e 70 75 74 20 70 |e a drag| input p|
|00005940| 72 6f 63 65 64 75 72 65 | 20 74 68 61 74 20 69 73 |rocedure| that is|
|00005950| 20 63 61 6c 6c 65 64 20 | 62 79 20 74 68 65 20 44 | called |by the D|
|00005960| 72 61 67 20 4d 61 6e 61 | 67 65 72 20 65 61 63 68 |rag Mana|ger each|
|00005970| 20 74 69 6d 65 20 74 68 | 65 20 44 72 61 67 20 4d | time th|e Drag M|
|00005980| 61 6e 61 67 65 72 20 73 | 61 6d 70 6c 65 73 20 74 |anager s|amples t|
|00005990| 68 65 20 6d 6f 75 73 65 | 20 61 6e 64 20 6b 65 79 |he mouse| and key|
|000059a0| 62 6f 61 72 64 2e 0d 54 | 68 65 20 64 72 61 67 20 |board..T|he drag |
|000059b0| 69 6e 70 75 74 20 70 72 | 6f 63 65 64 75 72 65 20 |input pr|ocedure |
|000059c0| 67 65 74 73 20 70 61 73 | 73 65 64 20 74 68 65 20 |gets pas|sed the |
|000059d0| 63 75 72 72 65 6e 74 20 | 6d 6f 75 73 65 20 6c 6f |current |mouse lo|
|000059e0| 63 61 74 69 6f 6e 2c 20 | 6d 6f 75 73 65 20 62 75 |cation, |mouse bu|
|000059f0| 74 74 6f 6e 20 73 74 61 | 74 65 20 61 6e 64 20 6b |tton sta|te and k|
|00005a00| 65 79 62 6f 61 72 64 20 | 6d 6f 64 69 66 69 65 72 |eyboard |modifier|
|00005a10| 20 73 74 61 74 75 73 2e | 20 20 41 20 64 72 61 67 | status.| A drag|
|00005a20| 20 69 6e 70 75 74 20 70 | 72 6f 63 65 64 75 72 65 | input p|rocedure|
|00005a30| 20 63 61 6e 20 65 69 74 | 68 65 72 20 73 6c 69 67 | can eit|her slig|
|00005a40| 68 74 6c 79 20 6d 6f 64 | 69 66 79 20 74 68 65 73 |htly mod|ify thes|
|00005a50| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 6f 72 20 |e parame|ters or |
|00005a60| 63 6f 6d 70 6c 65 74 65 | 6c 79 20 63 68 61 6e 67 |complete|ly chang|
|00005a70| 65 20 74 68 65 6d 2e 0d | 46 6f 72 20 65 78 61 6d |e them..|For exam|
|00005a80| 70 6c 65 2c 20 61 20 64 | 72 61 67 20 69 6e 70 75 |ple, a d|rag inpu|
|00005a90| 74 20 70 72 6f 63 65 64 | 75 72 65 20 63 61 6e 20 |t proced|ure can |
|00005aa0| 69 6e 68 69 62 69 74 20 | 6f 72 20 66 6f 72 63 65 |inhibit |or force|
|00005ab0| 20 73 70 65 63 69 66 69 | 63 20 6d 6f 64 69 66 69 | specifi|c modifi|
|00005ac0| 65 72 20 6b 65 79 73 2c | 20 63 61 6e 20 63 6f 6e |er keys,| can con|
|00005ad0| 74 72 6f 6c 20 74 68 65 | 20 73 74 61 74 65 20 6f |trol the| state o|
|00005ae0| 66 20 74 68 65 20 6d 6f | 75 73 65 20 62 75 74 74 |f the mo|use butt|
|00005af0| 6f 6e 2c 20 61 6e 64 20 | 63 61 6e 20 63 6f 6e 74 |on, and |can cont|
|00005b00| 72 6f 6c 20 74 68 65 20 | 63 6f 6f 72 64 69 6e 61 |rol the |coordina|
|00005b10| 74 65 73 20 6f 66 20 74 | 68 65 20 63 75 72 73 6f |tes of t|he curso|
|00005b20| 72 2e 0d 4f 76 65 72 72 | 69 64 69 6e 67 20 53 74 |r..Overr|iding St|
|00005b30| 61 6e 64 61 72 64 20 44 | 72 61 77 69 6e 67 0d 54 |andard D|rawing.T|
|00005b40| 68 65 20 44 72 61 67 20 | 4d 61 6e 61 67 65 72 20 |he Drag |Manager |
|00005b50| 70 72 6f 76 69 64 65 73 | 20 74 68 65 20 73 65 6e |provides| the sen|
|00005b60| 64 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |der appl|ication |
|00005b70| 77 69 74 68 20 61 20 77 | 61 79 20 74 6f 20 6f 76 |with a w|ay to ov|
|00005b80| 65 72 72 69 64 65 20 74 | 68 65 20 73 74 61 6e 64 |erride t|he stand|
|00005b90| 61 72 64 20 64 72 61 67 | 20 72 65 67 69 6f 6e 20 |ard drag| region |
|00005ba0| 64 72 61 77 69 6e 67 20 | 62 65 68 61 76 69 6f 72 |drawing |behavior|
|00005bb0| 2e 20 20 54 68 69 73 20 | 69 73 20 64 6f 6e 65 20 |. This |is done |
|00005bc0| 62 65 20 73 70 65 63 69 | 66 79 69 6e 67 20 61 20 |be speci|fying a |
|00005bd0| 64 72 61 67 20 64 72 61 | 77 69 6e 67 20 70 72 6f |drag dra|wing pro|
|00005be0| 63 65 64 75 72 65 20 66 | 6f 72 20 61 20 67 69 76 |cedure f|or a giv|
|00005bf0| 65 6e 20 64 72 61 67 20 | 6f 70 65 72 61 74 69 6f |en drag |operatio|
|00005c00| 6e 2e 0d 57 68 65 6e 20 | 61 20 64 72 61 67 20 64 |n..When |a drag d|
|00005c10| 72 61 77 69 6e 67 20 70 | 72 6f 63 65 64 75 72 65 |rawing p|rocedure|
|00005c20| 20 69 73 20 67 69 76 65 | 6e 20 66 6f 72 20 61 20 | is give|n for a |
|00005c30| 64 72 61 67 2c 20 74 68 | 65 20 44 72 61 67 20 4d |drag, th|e Drag M|
|00005c40| 61 6e 61 67 65 72 20 73 | 65 6e 64 73 20 79 6f 75 |anager s|ends you|
|00005c50| 72 20 64 72 61 67 20 64 | 72 61 77 69 6e 67 20 70 |r drag d|rawing p|
|00005c60| 72 6f 63 65 64 75 72 65 | 20 61 20 73 65 71 75 65 |rocedure| a seque|
|00005c70| 6e 63 65 20 6f 66 20 6d | 65 73 73 61 67 65 73 20 |nce of m|essages |
|00005c80| 74 68 61 74 20 61 6c 6c | 6f 77 20 79 6f 75 20 74 |that all|ow you t|
|00005c90| 6f 20 61 73 73 75 6d 65 | 20 72 65 73 70 6f 6e 73 |o assume| respons|
|00005ca0| 69 62 69 6c 69 74 79 20 | 66 6f 72 20 64 72 61 77 |ibility |for draw|
|00005cb0| 69 6e 67 20 74 68 65 20 | 64 72 61 67 20 72 65 67 |ing the |drag reg|
|00005cc0| 69 6f 6e 20 6f 72 20 73 | 69 6d 69 6c 61 72 20 66 |ion or s|imilar f|
|00005cd0| 65 65 64 62 61 63 6b 20 | 6f 6e 20 74 68 65 20 73 |eedback |on the s|
|00005ce0| 63 72 65 65 6e 2e 20 20 | 59 6f 75 72 20 44 72 61 |creen. |Your Dra|
|00005cf0| 67 44 72 61 77 69 6e 67 | 50 72 6f 63 20 72 65 63 |gDrawing|Proc rec|
|00005d00| 65 69 76 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |eives th|e follow|
|00005d10| 69 6e 67 20 6d 65 73 73 | 61 67 65 73 20 66 72 6f |ing mess|ages fro|
|00005d20| 6d 20 74 68 65 20 44 72 | 61 67 20 4d 61 6e 61 67 |m the Dr|ag Manag|
|00005d30| 65 72 3a 0d 09 6e 09 61 | 20 64 72 61 67 20 72 65 |er:..n.a| drag re|
|00005d40| 67 69 6f 6e 20 62 65 67 | 69 6e 20 6d 65 73 73 61 |gion beg|in messa|
|00005d50| 67 65 20 77 68 65 6e 20 | 61 20 64 72 61 67 20 69 |ge when |a drag i|
|00005d60| 73 20 62 65 67 69 6e 6e | 69 6e 67 20 61 6e 64 20 |s beginn|ing and |
|00005d70| 69 74 20 69 73 20 74 69 | 6d 65 20 66 6f 72 20 79 |it is ti|me for y|
|00005d80| 6f 75 72 20 44 72 61 67 | 44 72 61 77 69 6e 67 50 |our Drag|DrawingP|
|00005d90| 72 6f 63 20 74 6f 20 61 | 6c 6c 6f 63 61 74 65 20 |roc to a|llocate |
|00005da0| 6d 65 6d 6f 72 79 20 61 | 6e 64 20 69 6e 69 74 69 |memory a|nd initi|
|00005db0| 61 6c 69 7a 65 20 61 6e | 79 20 64 61 74 61 20 73 |alize an|y data s|
|00005dc0| 74 72 75 63 74 75 72 65 | 73 20 69 74 20 6e 65 65 |tructure|s it nee|
|00005dd0| 64 73 20 74 6f 20 66 75 | 6e 63 74 69 6f 6e 20 70 |ds to fu|nction p|
|00005de0| 72 6f 70 65 72 6c 79 0d | 09 6e 09 61 20 64 72 61 |roperly.|.n.a dra|
|00005df0| 67 20 72 65 67 69 6f 6e | 20 64 72 61 77 20 20 6d |g region| draw m|
|00005e00| 65 73 73 61 67 65 20 77 | 68 65 6e 20 74 68 65 20 |essage w|hen the |
|00005e10| 64 72 61 67 20 72 65 67 | 69 6f 6e 20 68 61 73 20 |drag reg|ion has |
|00005e20| 6d 6f 76 65 64 20 6f 72 | 20 6e 65 65 64 73 20 74 |moved or| needs t|
|00005e30| 6f 20 62 65 20 72 65 64 | 72 61 77 6e 20 6f 6e 20 |o be red|rawn on |
|00005e40| 74 68 65 20 73 63 72 65 | 65 6e 0d 09 6e 09 61 20 |the scre|en..n.a |
|00005e50| 64 72 61 67 20 72 65 67 | 69 6f 6e 20 68 69 64 65 |drag reg|ion hide|
|00005e60| 20 6d 65 73 73 61 67 65 | 20 77 68 65 6e 20 61 6c | message| when al|
|00005e70| 6c 20 6f 72 20 70 61 72 | 74 20 6f 66 20 74 68 65 |l or par|t of the|
|00005e80| 20 64 72 61 67 20 72 65 | 67 69 6f 6e 20 6e 65 65 | drag re|gion nee|
|00005e90| 64 73 20 74 6f 20 62 65 | 20 72 65 6d 6f 76 65 64 |ds to be| removed|
|00005ea0| 20 66 72 6f 6d 20 74 68 | 65 20 73 63 72 65 65 6e | from th|e screen|
|00005eb0| 0d 09 6e 09 61 20 64 72 | 61 67 20 72 65 67 69 6f |..n.a dr|ag regio|
|00005ec0| 6e 20 69 64 6c 65 20 6d | 65 73 73 61 67 65 20 77 |n idle m|essage w|
|00005ed0| 68 65 6e 20 74 68 65 20 | 64 72 61 67 20 72 65 67 |hen the |drag reg|
|00005ee0| 69 6f 6e 20 68 61 73 20 | 6e 6f 74 20 6d 6f 76 65 |ion has |not move|
|00005ef0| 64 20 61 6e 64 20 64 6f | 65 73 20 6e 6f 74 20 6e |d and do|es not n|
|00005f00| 65 65 64 20 74 6f 20 62 | 65 20 72 65 64 72 61 77 |eed to b|e redraw|
|00005f10| 6e 0d 09 6e 09 61 20 64 | 72 61 67 20 72 65 67 69 |n..n.a d|rag regi|
|00005f20| 6f 6e 20 65 6e 64 20 6d | 65 73 73 61 67 65 20 77 |on end m|essage w|
|00005f30| 68 65 6e 20 74 68 65 20 | 64 72 61 67 20 68 61 73 |hen the |drag has|
|00005f40| 20 65 6e 64 65 64 20 61 | 6e 64 20 69 74 20 69 73 | ended a|nd it is|
|00005f50| 20 74 69 6d 65 20 66 6f | 72 20 79 6f 75 72 20 44 | time fo|r your D|
|00005f60| 72 61 67 44 72 61 77 69 | 6e 67 50 72 6f 63 20 74 |ragDrawi|ngProc t|
|00005f70| 6f 20 64 65 61 6c 6c 6f | 63 61 74 65 20 61 6e 79 |o deallo|cate any|
|00005f80| 20 6d 65 6d 6f 72 79 20 | 69 74 20 6d 61 79 20 68 | memory |it may h|
|00005f90| 61 76 65 20 61 6c 6c 6f | 63 61 74 65 64 0d 55 73 |ave allo|cated.Us|
|00005fa0| 69 6e 67 20 74 68 65 20 | 44 72 61 67 20 4d 61 6e |ing the |Drag Man|
|00005fb0| 61 67 65 72 0d 59 6f 75 | 20 75 73 65 20 74 68 65 |ager.You| use the|
|00005fc0| 20 44 72 61 67 20 4d 61 | 6e 61 67 65 72 20 74 6f | Drag Ma|nager to|
|00005fd0| 20 6c 65 74 20 74 68 65 | 20 75 73 65 72 20 64 72 | let the| user dr|
|00005fe0| 61 67 20 69 74 65 6d 73 | 20 69 6e 20 79 6f 75 72 |ag items| in your|
|00005ff0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 20 54 | applica|tion. T|
|00006000| 68 65 20 44 72 61 67 20 | 4d 61 6e 61 67 65 72 20 |he Drag |Manager |
|00006010| 77 69 6c 6c 20 61 6c 6c | 6f 77 20 69 74 65 6d 73 |will all|ow items|
|00006020| 20 74 6f 20 62 65 20 64 | 72 61 67 67 65 64 20 62 | to be d|ragged b|
|00006030| 65 74 77 65 65 6e 20 77 | 69 6e 64 6f 77 73 20 6f |etween w|indows o|
|00006040| 66 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |f your a|pplicati|
|00006050| 6f 6e 20 61 6e 64 20 61 | 6c 73 6f 20 62 65 74 77 |on and a|lso betw|
|00006060| 65 65 6e 20 6f 74 68 65 | 72 20 61 70 70 6c 69 63 |een othe|r applic|
|00006070| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 74 68 65 20 |ations t|hat the |
|00006080| 75 73 65 72 20 69 73 20 | 63 75 72 72 65 6e 74 6c |user is |currentl|
|00006090| 79 20 75 73 69 6e 67 2e | 20 20 54 68 65 20 44 72 |y using.| The Dr|
|000060a0| 61 67 20 4d 61 6e 61 67 | 65 72 20 69 73 20 61 6c |ag Manag|er is al|
|000060b0| 73 6f 20 75 73 65 64 20 | 74 6f 20 64 72 61 67 20 |so used |to drag |
|000060c0| 69 74 65 6d 73 20 62 6f | 74 68 20 74 6f 20 61 6e |items bo|th to an|
|000060d0| 64 20 66 72 6f 6d 20 74 | 68 65 20 4d 61 63 69 6e |d from t|he Macin|
|000060e0| 74 6f 73 68 20 46 69 6e | 64 65 72 2e 0d 42 65 66 |tosh Fin|der..Bef|
|000060f0| 6f 72 65 20 69 74 65 6d | 73 20 63 61 6e 20 62 65 |ore item|s can be|
|00006100| 20 64 72 61 67 67 65 64 | 20 69 6e 74 6f 20 6f 72 | dragged| into or|
|00006110| 20 6f 75 74 20 6f 66 20 | 6f 6e 65 20 6f 66 20 79 | out of |one of y|
|00006120| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e d5 |our appl|ication.|
|00006130| 73 20 77 69 6e 64 6f 77 | 73 2c 20 79 6f 75 20 6d |s window|s, you m|
|00006140| 75 73 74 20 72 65 67 69 | 73 74 65 72 20 61 20 73 |ust regi|ster a s|
|00006150| 65 74 20 6f 66 20 64 72 | 61 67 20 68 61 6e 64 6c |et of dr|ag handl|
|00006160| 65 72 73 20 66 6f 72 20 | 74 68 65 20 44 72 61 67 |ers for |the Drag|
|00006170| 20 4d 61 6e 61 67 65 72 | 20 74 6f 20 75 73 65 20 | Manager| to use |
|00006180| 77 68 65 6e 20 79 6f 75 | 20 61 70 70 6c 69 63 61 |when you| applica|
|00006190| 74 69 6f 6e 20 69 73 20 | 69 6e 76 6f 6c 76 65 64 |tion is |involved|
|000061a0| 20 69 6e 20 64 72 61 67 | 67 69 6e 67 2e 20 20 41 | in drag|ging. A|
|000061b0| 20 64 72 61 67 20 68 61 | 6e 64 6c 65 72 20 69 73 | drag ha|ndler is|
|000061c0| 20 61 20 63 61 6c 6c 62 | 61 63 6b 20 72 6f 75 74 | a callb|ack rout|
|000061d0| 69 6e 65 20 74 68 61 74 | 20 74 68 65 20 44 72 61 |ine that| the Dra|
|000061e0| 67 20 4d 61 6e 61 67 65 | 72 20 77 69 6c 6c 20 63 |g Manage|r will c|
|000061f0| 61 6c 6c 20 77 68 65 6e | 20 74 68 65 20 44 72 61 |all when| the Dra|
|00006200| 67 20 4d 61 6e 61 67 65 | 72 20 6e 65 65 64 73 20 |g Manage|r needs |
|00006210| 74 6f 20 73 65 6e 64 20 | 79 6f 75 72 20 61 70 70 |to send |your app|
|00006220| 6c 69 63 61 74 69 6f 6e | 20 61 20 6d 65 73 73 61 |lication| a messa|
|00006230| 67 65 20 61 62 6f 75 74 | 20 61 20 64 72 61 67 20 |ge about| a drag |
|00006240| 6f 63 63 75 72 72 69 6e | 67 20 77 69 74 68 69 6e |occurrin|g within|
|00006250| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00006260| 6e 2e 0d 41 20 64 72 61 | 67 20 61 6e 64 20 64 72 |n..A dra|g and dr|
|00006270| 6f 70 20 61 63 74 69 6f | 6e 20 62 79 20 74 68 65 |op actio|n by the|
|00006280| 20 75 73 65 72 20 69 73 | 20 62 72 6f 6b 65 6e 20 | user is| broken |
|00006290| 64 6f 77 6e 20 69 6e 74 | 6f 20 74 68 72 65 65 20 |down int|o three |
|000062a0| 64 69 73 63 72 65 74 65 | 20 73 74 65 70 73 2e 20 |discrete| steps. |
|000062b0| 20 54 68 65 20 73 74 65 | 70 73 20 61 72 65 20 66 | The ste|ps are f|
|000062c0| 69 72 73 74 20 74 6f 20 | 70 69 63 6b 20 75 70 20 |irst to |pick up |
|000062d0| 74 68 65 20 69 74 65 6d | 20 6f 72 20 69 74 65 6d |the item| or item|
|000062e0| 73 20 62 65 69 6e 67 20 | 64 72 61 67 67 65 64 2c |s being |dragged,|
|000062f0| 20 74 68 65 6e 20 74 6f | 20 74 72 61 63 6b 20 74 | then to| track t|
|00006300| 68 65 20 73 65 6c 65 63 | 74 69 6f 6e 20 62 65 69 |he selec|tion bei|
|00006310| 6e 67 20 64 72 61 67 67 | 65 64 20 74 68 72 6f 75 |ng dragg|ed throu|
|00006320| 67 68 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |gh appli|cation w|
|00006330| 69 6e 64 6f 77 73 20 61 | 73 20 74 68 65 20 75 73 |indows a|s the us|
|00006340| 65 72 20 73 65 61 72 63 | 68 65 73 20 66 6f 72 20 |er searc|hes for |
|00006350| 61 20 70 6c 61 63 65 20 | 74 6f 20 64 72 6f 70 20 |a place |to drop |
|00006360| 74 68 65 20 73 65 6c 65 | 63 74 69 6f 6e 2c 20 61 |the sele|ction, a|
|00006370| 6e 64 20 66 69 6e 61 6c | 6c 79 20 74 6f 20 64 72 |nd final|ly to dr|
|00006380| 6f 70 20 74 68 65 20 69 | 74 65 6d 20 6f 72 20 69 |op the i|tem or i|
|00006390| 74 65 6d 73 20 61 74 20 | 74 68 65 20 75 73 65 72 |tems at |the user|
|000063a0| d5 73 20 63 68 6f 73 65 | 6e 20 64 65 73 74 69 6e |.s chose|n destin|
|000063b0| 61 74 69 6f 6e 2e 0d 54 | 68 69 73 20 73 65 63 74 |ation..T|his sect|
|000063c0| 69 6f 6e 20 65 78 70 6c | 61 69 6e 73 20 69 6e 20 |ion expl|ains in |
|000063d0| 64 65 74 61 69 6c 20 68 | 6f 77 20 79 6f 75 20 75 |detail h|ow you u|
|000063e0| 73 65 20 74 68 65 20 44 | 72 61 67 20 4d 61 6e 61 |se the D|rag Mana|
|000063f0| 67 65 72 20 74 6f 3a 0d | 09 6e 09 69 6e 73 74 61 |ger to:.|.n.insta|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.